replace strdup by copy
This commit is contained in:
parent
55926f4375
commit
c579717d00
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue