diff options
Diffstat (limited to 'src/schemes/about')
-rw-r--r-- | src/schemes/about/profiles.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/schemes/about/profiles.c b/src/schemes/about/profiles.c index 4439220..3cb0709 100644 --- a/src/schemes/about/profiles.c +++ b/src/schemes/about/profiles.c @@ -92,7 +92,7 @@ generate_document(MqProfiles *profiles, gboolean adding) gsize i; ids = mq_profiles_get_profiles(profiles, &length); - divs = g_new(gchar *, length + (adding ? 1 : 0)); + divs = g_new(gchar *, length + (adding ? 1 : 0) + 1); for (i = 0; i < length; ++i) { divs[i] = generate_div(profiles, ids[i]); } |