From 3e96597d69f78d536929014fd2023ebf2c6275e9 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sun, 16 Mar 2008 17:05:10 +0000 Subject: Keep the 0 in the end of the array when duping it svn path=/trunk/; revision=810 --- libempathy/empathy-tp-contact-factory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libempathy/empathy-tp-contact-factory.c b/libempathy/empathy-tp-contact-factory.c index 93698a4b2..91389a802 100644 --- a/libempathy/empathy-tp-contact-factory.c +++ b/libempathy/empathy-tp-contact-factory.c @@ -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; -- cgit v1.2.3