mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 14:00:15 +01:00
2006-02-07 Robert Love <rml@novell.com>
Patch by Stefan Seyfried <seife@suse.de>: * libnm-util/cipher.c: Fix off-by-one error in cipher_bin2hexstr. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1458 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
3efccccd74
commit
b04a58e5f9
2 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2006-02-07 Robert Love <rml@novell.com>
|
||||
|
||||
Patch by Stefan Seyfried <seife@suse.de>:
|
||||
* libnm-util/cipher.c: Fix off-by-one error in cipher_bin2hexstr.
|
||||
|
||||
2006-02-06 Robert Love <rml@novell.com>
|
||||
|
||||
* src/nm-device-802-11-wireless.c: Fix leak in supplicant_status_cb().
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ cipher_bin2hexstr (const char *bytes,
|
|||
g_return_val_if_fail (len > 0, NULL);
|
||||
g_return_val_if_fail (len < 256, NULL); /* Arbitrary limit */
|
||||
|
||||
result = g_malloc0 (len * 2);
|
||||
result = g_malloc0 (len * 2 + 1);
|
||||
for (i = 0; i < len; i++)
|
||||
{
|
||||
result[2*i] = hex_digits[(bytes[i] >> 4) & 0xf];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue