aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-03-17 01:05:10 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-03-17 01:05:10 +0800
commit3e96597d69f78d536929014fd2023ebf2c6275e9 (patch)
tree7c6d617577e6068d60d6d25b3a822c352fba4031
parent8098e33d96516012fbe053b1316970179a4992d4 (diff)
downloadgsoc2013-empathy-3e96597d69f78d536929014fd2023ebf2c6275e9.tar
gsoc2013-empathy-3e96597d69f78d536929014fd2023ebf2c6275e9.tar.gz
gsoc2013-empathy-3e96597d69f78d536929014fd2023ebf2c6275e9.tar.bz2
gsoc2013-empathy-3e96597d69f78d536929014fd2023ebf2c6275e9.tar.lz
gsoc2013-empathy-3e96597d69f78d536929014fd2023ebf2c6275e9.tar.xz
gsoc2013-empathy-3e96597d69f78d536929014fd2023ebf2c6275e9.tar.zst
gsoc2013-empathy-3e96597d69f78d536929014fd2023ebf2c6275e9.zip
Keep the 0 in the end of the array when duping it
svn path=/trunk/; revision=810
-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;