diff options
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/win32/win32.c b/win32/win32.c index c76f89a48a..6c27ffa277 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1260,12 +1260,7 @@ w32_spawn(int mode, const char *cmd, const char *prog, UINT cp) } if ((unsigned char)*prog == quote) { len = prog++ - cmd - 1; - STRNDUPV(p, v2, cmd + 1 - slash, len + (slash ? strlen(prog) + 2 : 0)); - if (slash) { - cmd = p++; - sep = *(cmd_sep = &p[len + 1]); - *cmd_sep = '\0'; - } + STRNDUPV(p, v2, cmd + 1, len); shell = p; break; } |