empathy r810 - trunk/libempathy



Author: xclaesse
Date: Sun Mar 16 17:05:10 2008
New Revision: 810
URL: http://svn.gnome.org/viewvc/empathy?rev=810&view=rev

Log:
Keep the 0 in the end of the array when duping it


Modified:
   trunk/libempathy/empathy-tp-contact-factory.c

Modified: trunk/libempathy/empathy-tp-contact-factory.c
==============================================================================
--- trunk/libempathy/empathy-tp-contact-factory.c	(original)
+++ trunk/libempathy/empathy-tp-contact-factory.c	Sun Mar 16 17:05:10 2008
@@ -233,7 +233,7 @@
 		while (handles[size] != 0) {
 			size++;
 		}
-		handles = g_memdup (handles, size * sizeof (guint));
+		handles = g_memdup (handles, (size + 1) * sizeof (guint));
 		handles_array.len = size;
 		handles_array.data = (gchar*) handles;
 		



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