aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-tp-contact-factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/empathy-tp-contact-factory.c')
-rw-r--r--libempathy/empathy-tp-contact-factory.c2
1 files changed, 1 insertions, 1 deletions
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;