From c579717d00ade807c9dfa8b462dd6ec34680ee61 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sat, 7 Nov 2009 11:14:54 +0000 Subject: [PATCH] replace strdup by copy --- ChangeLog | 3 +++ src/winmain.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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