X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard.c;h=c9546e250d53425030f80944e2296421e96fbd74;hb=0183533e818083b1099145a0f42ee359bf0f3358;hp=3f1983da6c440890312606d6e5aa7e95726d6891;hpb=8f1501373295f172dd1118391c6ee914ecbc4e67;p=xboard.git diff --git a/xboard.c b/xboard.c index 3f1983d..c9546e2 100644 --- a/xboard.c +++ b/xboard.c @@ -7572,8 +7572,11 @@ int StartChildProcess(cmdLine, dir, pr) strcpy(buf, cmdLine); p = buf; for (;;) { + while(*p == ' ') p++; argv[i++] = p; - p = strchr(p, ' '); + if(*p == '"' || *p == '\'') + p = strchr(++argv[i-1], *p); + else p = strchr(p, ' '); if (p == NULL) break; *p++ = NULLCHAR; }