1
0
forked from 0ad/0ad

arg parsing code: wasn't properly handling "

This was SVN commit r5337.
This commit is contained in:
janwas 2007-09-08 08:37:30 +00:00
parent 5383eff15c
commit 3f58951808

View File

@ -174,6 +174,7 @@ static void ReadCommandLine()
// strip the " character
memmove(argvContents+i, argvContents+i+1, numChars-i);
numChars--;
i--;
break;
case ' ':
@ -185,6 +186,7 @@ static void ReadCommandLine()
break;
}
}
wutil_argc++;
// have argv entries point into the tokenized string
wutil_argv = (char**)HeapAlloc(GetProcessHeap(), HEAP_GENERATE_EXCEPTIONS, wutil_argc*sizeof(char*));