]> git.0d.be Git - empathy.git/commitdiff
Make sure the dup_handles array is ended by 0.
authorXavier Claessens <xclaesse@src.gnome.org>
Sun, 16 Mar 2008 16:50:30 +0000 (16:50 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Sun, 16 Mar 2008 16:50:30 +0000 (16:50 +0000)
svn path=/trunk/; revision=809

libempathy/empathy-tp-contact-factory.c

index 929f2b2f56a0bea0987c5219133615ebcdfadd47..93698a4b2824acd4abf728f0efd6beb5bf80d0ea 100644 (file)
@@ -621,7 +621,9 @@ tp_contact_factory_request_everything (EmpathyTpContactFactory *tp_factory,
                                                                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,