summaryrefslogtreecommitdiff
path: root/gsettings
diff options
context:
space:
mode:
authorMatthew Garrett <mjg@redhat.com>2010-07-12 13:41:34 -0400
committerMatthias Clasen <mclasen@redhat.com>2010-07-12 13:41:34 -0400
commit8b4ec8270824b4a235aa40df0493d8f5babb121c (patch)
tree5913801409e0fa7322e2d05afe10736625285f77 /gsettings
parentf34f10cd4598d531e6c32e22e1c2d7de2b888598 (diff)
downloadgconf-8b4ec8270824b4a235aa40df0493d8f5babb121c.tar.gz
Realloc the correct amount of memory
Pointers are more than a byte long - make sure that we realloc enough space to fit another one. https://bugzilla.redhat.com/show_bug.cgi?id=609187
Diffstat (limited to 'gsettings')
-rw-r--r--gsettings/gsettings-data-convert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gsettings/gsettings-data-convert.c b/gsettings/gsettings-data-convert.c
index d61c4bee..aa92710c 100644
--- a/gsettings/gsettings-data-convert.c
+++ b/gsettings/gsettings-data-convert.c
@@ -449,7 +449,7 @@ main (int argc, char *argv[])
/* Add the the file to the converted list */
len = g_strv_length (converted);
- converted = g_realloc (converted, len + 1);
+ converted = g_realloc (converted, (len + 2) * sizeof (gchar *));
converted[len] = g_strdup (name);
converted[len + 1] = NULL;
}