mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-22 09:10:37 +01:00
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:
parent
0498d9b486
commit
660e8fdab2
2 changed files with 6 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue