Browse Source

replace strdup by copy

pre-master-46
h_vogt 17 years ago
parent
commit
c579717d00
  1. 3
      ChangeLog
  2. 2
      src/winmain.c

3
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

2
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

Loading…
Cancel
Save