diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-03-17 00:50:30 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-03-17 00:50:30 +0800 |
commit | 8098e33d96516012fbe053b1316970179a4992d4 (patch) | |
tree | eed3880923cd8ef65e08b002ceff693a38f30e79 /libempathy | |
parent | d5c4a02d9d07a83c0d13b0de838626831b99e35c (diff) | |
download | gsoc2013-empathy-8098e33d96516012fbe053b1316970179a4992d4.tar gsoc2013-empathy-8098e33d96516012fbe053b1316970179a4992d4.tar.gz gsoc2013-empathy-8098e33d96516012fbe053b1316970179a4992d4.tar.bz2 gsoc2013-empathy-8098e33d96516012fbe053b1316970179a4992d4.tar.lz gsoc2013-empathy-8098e33d96516012fbe053b1316970179a4992d4.tar.xz gsoc2013-empathy-8098e33d96516012fbe053b1316970179a4992d4.tar.zst gsoc2013-empathy-8098e33d96516012fbe053b1316970179a4992d4.zip |
Make sure the dup_handles array is ended by 0.
svn path=/trunk/; revision=809
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, |