glib r6833 - in branches/glib-2-16: . glib
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r6833 - in branches/glib-2-16: . glib
- Date: Tue, 8 Apr 2008 03:23:49 +0100 (BST)
Author: matthiasc
Date: Tue Apr 8 03:23:49 2008
New Revision: 6833
URL: http://svn.gnome.org/viewvc/glib?rev=6833&view=rev
Log:
Bug 526619 â make test-report crash
* glib/gtester.c: Allocate enough space for argv. Patch by
Hiroyuki Ikezoe
Modified:
branches/glib-2-16/ChangeLog
branches/glib-2-16/glib/gtester.c
Modified: branches/glib-2-16/glib/gtester.c
==============================================================================
--- branches/glib-2-16/glib/gtester.c (original)
+++ branches/glib-2-16/glib/gtester.c Tue Apr 8 03:23:49 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]