diff options
-rw-r--r-- | libempathy/empathy-tp-contact-factory.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libempathy/empathy-tp-contact-factory.c b/libempathy/empathy-tp-contact-factory.c index 929f2b2f5..93698a4b2 100644 --- a/libempathy/empathy-tp-contact-factory.c +++ b/libempathy/empathy-tp-contact-factory.c @@ -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, |