Patch for gdkinit
- From: Tristan Tarrant <ttarrant suntlc etnoteam it>
- To: gtk-list redhat com
- Subject: Patch for gdkinit
- Date: Thu, 30 Oct 1997 09:48:30 -0100 (GMT)
Found a bug in gdk_init
I enclose a patch
Tristan
--
Tristan Tarrant ttarrant@etnoteam.it
Quando ti svegli al mattino, sorridi. |When you wake up in the morning, smile
Domani sara' peggio. |Tomorrow will be worse.
Ramon Montoro
--- gdk.c~ Fri Oct 17 17:44:27 1997
+++ gdk.c Wed Oct 29 15:32:14 1997
@@ -207,7 +207,7 @@
int argc_orig = *argc;
char **argv_orig;
- argv_orig = malloc (argc_orig * sizeof(char*));
+ argv_orig = malloc ((argc_orig+1) * sizeof(char*));
for (i = 0; i < argc_orig; i++)
argv_orig[i] = g_strdup ((*argv)[i]);
argv_orig[argc_orig] = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]