Bug 526619 – make test-report crash

* glib/gtester.c: Allocate enough space for argv. Patch by
         Hiroyuki Ikezoe


svn path=/branches/glib-2-16/; revision=6833
This commit is contained in:
Matthias Clasen
2008-04-08 02:23:49 +00:00
parent 118e24c541
commit 3186f5297c
2 changed files with 10 additions and 1 deletions

View File

@@ -1,3 +1,12 @@
2008-04-07 Matthias Clasen <mclasen@redhat.com>
Merged from trunk:
Bug 526619 make test-report crash
* glib/gtester.c: Allocate enough space for argv. Patch by
Hiroyuki Ikezoe
2008-04-04 Matthias Clasen <mclasen@redhat.com>
* glib/gmain.c: Make the fix for bug 448943 work.

View File

@@ -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;