Update src/process/windows/SDL_windowsprocess.c

Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
This commit is contained in:
Semphriss 2024-09-13 22:44:51 -04:00 committed by Sam Lantinga
parent 82b33a7d3f
commit 27862907c6
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ static bool join_arguments(const char * const *args, char **args_out)
break;
case '\\':
/* only escape backslashes that precede a double quote */
len += (*(a + 1) == '"' || *(a + 1) == '\0') ? 2 : 1;
len += (a[1] == '"' || a[1] == '\0') ? 2 : 1;
break;
default:
len += 1;