mirror of
https://github.com/yawut/SDL.git
synced 2026-04-18 14:47:27 -05:00
Fixed bug 4073 - Unquoted Unicode argument parsing broken on Windows due to incorrect usage of SDL_isspace()
This commit is contained in:
parent
8a477f57e7
commit
a9196a5280
|
|
@ -51,7 +51,7 @@ ParseCommandLine(char *cmdline, char **argv)
|
|||
argc = last_argc = 0;
|
||||
for (bufp = cmdline; *bufp;) {
|
||||
/* Skip leading whitespace */
|
||||
while (SDL_isspace(*bufp)) {
|
||||
while (*bufp == ' ' || *bufp == '\t') {
|
||||
++bufp;
|
||||
}
|
||||
/* Skip over argument */
|
||||
|
|
@ -77,7 +77,7 @@ ParseCommandLine(char *cmdline, char **argv)
|
|||
++argc;
|
||||
}
|
||||
/* Skip over word */
|
||||
while (*bufp && !SDL_isspace(*bufp)) {
|
||||
while (*bufp && (*bufp != ' ' && *bufp != '\t')) {
|
||||
++bufp;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user