From a87a67857342cbfdae472a372be8bc7aaaae3907 Mon Sep 17 00:00:00 2001 From: Kate Markson Date: Fri, 21 Aug 2026 02:43:21 -0700 Subject: [PATCH] osdep/subprocess-win: terminate environment block Terminate the block of environment variables with NUL. Previously the block was left unterminated which could cause subprocess spawn failures depending on the array contents after the last item. --- osdep/subprocess-win.c | 1 + 1 file changed, 1 insertion(+) diff --git a/osdep/subprocess-win.c b/osdep/subprocess-win.c index de33768d22..c08cacc6ba 100644 --- a/osdep/subprocess-win.c +++ b/osdep/subprocess-win.c @@ -211,6 +211,7 @@ static wchar_t *convert_environ(void *ctx, char **env) abort(); pos += count; } + ret[pos] = L'\0'; return ret; }