1 Jul
2020
1 Jul
'20
1:40 p.m.
Fixes a regression introduced by b6722aa7527abc71cb46ab75e4b875c288408d52 Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49494 Signed-off-by: Gijs Vermeulen <gijsvrm(a)gmail.com> --- dlls/ntdll/unix/env.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/ntdll/unix/env.c b/dlls/ntdll/unix/env.c index e57b625689..955563be20 100644 --- a/dlls/ntdll/unix/env.c +++ b/dlls/ntdll/unix/env.c @@ -661,6 +661,8 @@ static BOOL unix_to_win_locale( const char *unix_name, char *win_name ) if (!unix_name || !unix_name[0]) return FALSE; } + strcpy( buffer, unix_name ); + if (!(p = strpbrk( buffer, sep ))) { if (!strcmp( buffer, "POSIX" ) || !strcmp( buffer, "C" )) -- 2.27.0