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:
Robert Love 2006-02-07 15:39:50 +00:00 committed by Robert Love
parent 3efccccd74
commit b04a58e5f9
2 changed files with 6 additions and 1 deletions

View file

@ -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().

View file

@ -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];