Skip to content

Commit

Permalink
Fixed bug 4073 - Unquoted Unicode argument parsing broken on Windows …
Browse files Browse the repository at this point in the history
…due to incorrect usage of SDL_isspace()
  • Loading branch information
slouken committed Feb 10, 2018
1 parent d5f293a commit 1143857
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/windows/SDL_windows_main.c
Expand Up @@ -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 */
Expand All @@ -77,7 +77,7 @@ ParseCommandLine(char *cmdline, char **argv)
++argc;
}
/* Skip over word */
while (*bufp && !SDL_isspace(*bufp)) {
while (*bufp && (*bufp != ' ' && *bufp != '\t')) {
++bufp;
}
}
Expand Down

0 comments on commit 1143857

Please sign in to comment.