diff options
author | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-03-17 00:50:30 +0800 |
---|---|---|
committer | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-03-17 00:50:30 +0800 |
commit | dc5c6edf3c3cae38b711d72dc130e8d557bec161 (patch) | |
tree | eed3880923cd8ef65e08b002ceff693a38f30e79 /libempathy | |
parent | 23c8fef47dc7648d00046d537b1b3f0a5f7e0e97 (diff) | |
download | gsoc2013-empathy-dc5c6edf3c3cae38b711d72dc130e8d557bec161.tar gsoc2013-empathy-dc5c6edf3c3cae38b711d72dc130e8d557bec161.tar.gz gsoc2013-empathy-dc5c6edf3c3cae38b711d72dc130e8d557bec161.tar.bz2 gsoc2013-empathy-dc5c6edf3c3cae38b711d72dc130e8d557bec161.tar.lz gsoc2013-empathy-dc5c6edf3c3cae38b711d72dc130e8d557bec161.tar.xz gsoc2013-empathy-dc5c6edf3c3cae38b711d72dc130e8d557bec161.tar.zst gsoc2013-empathy-dc5c6edf3c3cae38b711d72dc130e8d557bec161.zip |
Make sure the dup_handles array is ended by 0.
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@809 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy')
-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, |