]> git.0d.be Git - empathy.git/commitdiff
Keep the 0 in the end of the array when duping it
authorXavier Claessens <xclaesse@src.gnome.org>
Sun, 16 Mar 2008 17:05:10 +0000 (17:05 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Sun, 16 Mar 2008 17:05:10 +0000 (17:05 +0000)
svn path=/trunk/; revision=810

libempathy/empathy-tp-contact-factory.c

index 93698a4b2824acd4abf728f0efd6beb5bf80d0ea..91389a802e91fe2b93a64b8b5a420673ab1fea3d 100644 (file)
@@ -233,7 +233,7 @@ tp_contact_factory_request_aliases_cb (TpConnection *connection,
                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;