network-manager-applet r1016 - in trunk: . src/gconf-helpers



Author: tambeti
Date: Thu Nov 13 12:39:46 2008
New Revision: 1016
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=1016&view=rev

Log:
2008-11-13  Tambet Ingo  <tambet gmail com>

	* src/gconf-helpers/gconf-helpers.c (get_one_private_key): Set the
	GByteArray's content correctly.

Modified:
   trunk/ChangeLog
   trunk/src/gconf-helpers/gconf-helpers.c

Modified: trunk/src/gconf-helpers/gconf-helpers.c
==============================================================================
--- trunk/src/gconf-helpers/gconf-helpers.c	(original)
+++ trunk/src/gconf-helpers/gconf-helpers.c	Thu Nov 13 12:39:46 2008
@@ -1656,7 +1656,7 @@
 		/* Steal the private key */
 		tmp = nm_setting_802_1x_get_private_key (setting);
 		array = g_byte_array_sized_new (tmp->len);
-		memcpy (array->data, tmp->data, tmp->len);
+		g_byte_array_append (array, tmp->data, tmp->len);
 		g_object_unref (setting);
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]