2006-01-23 Robert Love <rml@novell.com>

* src/dhcp-manager/nm-dhcp-manager.c: Null-out the original byte array
	  before we g_strdup(), not the ultimate string.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1386 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Robert Love 2006-01-24 20:29:10 +00:00 committed by Robert Love
parent 0498d9b486
commit 660e8fdab2
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-01-23 Robert Love <rml@novell.com>
* src/dhcp-manager/nm-dhcp-manager.c: Null-out the original byte array
before we g_strdup(), not the ultimate string.
2006-01-23 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerAP.[ch]

View file

@ -444,8 +444,8 @@ static gboolean get_ip4_string (NMDHCPManager *manager, NMDevice *dev, const cha
dbus_error_init (&error);
if (dbus_message_get_args (reply, &error, DBUS_TYPE_ARRAY, DBUS_TYPE_BYTE, &byte_array, &len, DBUS_TYPE_INVALID))
{
byte_array[len] = '\0';
*string = g_strdup (byte_array);
*string[len] = '\0';
success = TRUE;
}
}