mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-16 22:40:53 +08:00
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:
committed by
Kacper Michajłow
parent
e7191f2a65
commit
a87a678573
@@ -211,6 +211,7 @@ static wchar_t *convert_environ(void *ctx, char **env)
|
||||
abort();
|
||||
pos += count;
|
||||
}
|
||||
ret[pos] = L'\0';
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user