Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2013-07-19 23:04:13 +0400
committerChristopher Faylor <me@cgf.cx>2013-07-19 23:04:13 +0400
commit132e0f018226396c89ceb8d02c6bb72454c2699c (patch)
treec4396d562eaa8b0ce987b8c1c1f9378a6e1b8ece /winsup/cygwin/lib
parent4741932459337c358fb1f11df3707fcdd54916aa (diff)
* lib/libcmain.c (main): Don't point to last quoted character if the only thing
in the buffer is the program name.
Diffstat (limited to 'winsup/cygwin/lib')
-rw-r--r--winsup/cygwin/lib/libcmain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/lib/libcmain.c b/winsup/cygwin/lib/libcmain.c
index bf6d980fc..73c698d31 100644
--- a/winsup/cygwin/lib/libcmain.c
+++ b/winsup/cygwin/lib/libcmain.c
@@ -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);