glib r6832 - in trunk: . glib
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r6832 - in trunk: . glib
- Date: Tue, 8 Apr 2008 03:22:37 +0100 (BST)
Author: matthiasc
Date: Tue Apr 8 03:22:37 2008
New Revision: 6832
URL: http://svn.gnome.org/viewvc/glib?rev=6832&view=rev
Log:
Bug 526619 â make test-report crash
* glib/gtester.c: Allocate enough space for argv. Patch by
Hiroyuki Ikezoe
Modified:
trunk/ChangeLog
trunk/glib/gtester.c
Modified: trunk/glib/gtester.c
==============================================================================
--- trunk/glib/gtester.c (original)
+++ trunk/glib/gtester.c Tue Apr 8 03:22:37 2008
@@ -317,7 +317,7 @@
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]