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.
This commit is contained in:
Kate Markson
2026-08-21 02:43:21 -07:00
committed by Kacper Michajłow
parent e7191f2a65
commit a87a678573
+1
View File
@@ -211,6 +211,7 @@ static wchar_t *convert_environ(void *ctx, char **env)
abort();
pos += count;
}
ret[pos] = L'\0';
return ret;
}