* lib/libcmain.c (main): Don't point to last quoted character if the only thing

in the buffer is the program name.
This commit is contained in:
Christopher Faylor 2013-07-19 19:04:13 +00:00
parent 4741932459
commit 132e0f0182
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2013-07-19 Christopher Faylor <me.cygwin2013@cgf.cx>
* lib/libcmain.c (main): Don't point to last quoted character if the
only thing in the buffer is the program name.
2013-07-19 Christopher Faylor <me.cygwin2013@cgf.cx>
* common.din: Export GetCommandLine{A,W}.

View File

@ -31,8 +31,8 @@ main ()
if (!nexts)
nexts = strchr (s, '\0');
else
nexts += strspn (nexts + 1, SP);
else if (*++nexts)
nexts += strspn (nexts, SP);
GetStartupInfo (&si);