[PATCH] ntdll: Add missing strcpy in unix_to_win_locale().
1 Jul
2020
1 Jul
'20
8:40 a.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
1990
Age (days ago)
1990
Last active (days ago)
0 comments
1 participants
participants (1)
-
Gijs Vermeulen