From 27862907c65453e53828e9d892df81c8ce536ea7 Mon Sep 17 00:00:00 2001
From: Semphriss <[EMAIL REDACTED]>
Date: Fri, 13 Sep 2024 22:44:51 -0400
Subject: [PATCH] Update src/process/windows/SDL_windowsprocess.c
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
---
src/process/windows/SDL_windowsprocess.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/process/windows/SDL_windowsprocess.c b/src/process/windows/SDL_windowsprocess.c
index 82f67430d16d1..75293346253da 100644
--- a/src/process/windows/SDL_windowsprocess.c
+++ b/src/process/windows/SDL_windowsprocess.c
@@ -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;