replace strdup by copy

This commit is contained in:
h_vogt 2009-11-07 11:14:54 +00:00
parent 55926f4375
commit c579717d00
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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