diff --git a/ChangeLog b/ChangeLog index 1c87e3037..3688a1325 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2009-11-07 Holger Vogt + * winmain.c: replace strdup()y copy() + 2009-10-31 Holger Vogt * winmain.c: windows updated more often how-to-ngspice-vstudio.txt: updated diff --git a/src/winmain.c b/src/winmain.c index 8e65798bb..5d4e37f6c 100644 --- a/src/winmain.c +++ b/src/winmain.c @@ -670,7 +670,7 @@ int MakeArgcArgv(char *cmdline,int *argc,char ***argv) { /* make a copy of the string so that we can modify it without messing up the original */ - pWorkString = strdup(cmdline); + pWorkString = copy(cmdline); if (NULL == pWorkString) return -1; /* memory allocation error */ /* Now, to make sure we don't have any quoted arguments