empathy r809 - trunk/libempathy



Author: xclaesse
Date: Sun Mar 16 16:50:30 2008
New Revision: 809
URL: http://svn.gnome.org/viewvc/empathy?rev=809&view=rev

Log:
Make sure the dup_handles array is ended by 0.


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 16:50:30 2008
@@ -621,7 +621,9 @@
 								dup_handles, g_free,
 								G_OBJECT (tp_factory));
 
-	dup_handles = g_memdup (handles->data, handles->len * sizeof (guint));
+	dup_handles = g_new (guint, handles->len + 1);
+	g_memmove (dup_handles, handles->data, handles->len * sizeof (guint));
+	dup_handles[handles->len] = 0;
 	tp_cli_connection_interface_aliasing_call_request_aliases (priv->connection,
 								   -1,
 								   handles,



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