diff --git a/ChangeLog b/ChangeLog index 1210250af..3c6cca7ee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-04-07 Matthias Clasen + + Bug 526619 – make test-report crash + + * glib/gtester.c: Allocate enough space for argv. Patch by + Hiroyuki Ikezoe + 2008-04-04 Matthias Clasen * glib/gmain.c: Make the fix for bug 448943 work. diff --git a/glib/gtester.c b/glib/gtester.c index 03549d9c3..ecc9f77fd 100644 --- a/glib/gtester.c +++ b/glib/gtester.c @@ -317,7 +317,7 @@ launch_test_binary (const char *binary, argc++; /* setup argv */ - argv = g_malloc ((argc + 1) * sizeof(gchar *)); + argv = g_malloc ((argc + 2) * sizeof(gchar *)); argv[i++] = binary; for (slist = subtest_args; slist; slist = slist->next) argv[i++] = (gchar*) slist->data;