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