diff options
Diffstat (limited to 'support')
-rw-r--r-- | support/ChangeLog | 4 | ||||
-rw-r--r-- | support/poptparse.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/support/ChangeLog b/support/ChangeLog index 8bef4ede..bf069249 100644 --- a/support/ChangeLog +++ b/support/ChangeLog @@ -1,3 +1,7 @@ +1998-12-21 Matt Wilson <msw@redhat.com> + + * poptparse.c: fix pointer assignment + 1998-12-16 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * Makefile.am (libgnomesupport_la_SOURCES): added gnome-argp.c, diff --git a/support/poptparse.c b/support/poptparse.c index 35eaa436..2e9bc738 100644 --- a/support/poptparse.c +++ b/support/poptparse.c @@ -16,7 +16,7 @@ #include "popt-gnome.h" int poptParseArgvString(char * s, int * argcPtr, char *** argvPtr) { - char * buf; + char * buf = strcpy(alloca(strlen(s) + 1), s); char * bufStart = buf; char * src, * dst; char quote = '\0'; @@ -26,7 +26,6 @@ int poptParseArgvString(char * s, int * argcPtr, char *** argvPtr) { int argc = 0; int i; - buf = strcpy(alloca(strlen(s) + 1), s); src = s; dst = buf; argv[argc] = buf; |