From 8098e33d96516012fbe053b1316970179a4992d4 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sun, 16 Mar 2008 16:50:30 +0000 Subject: Make sure the dup_handles array is ended by 0. svn path=/trunk/; revision=809 --- libempathy/empathy-tp-contact-factory.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libempathy') 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, -- cgit v1.2.3