[PATCH] ntdll: Add missing strcpy in unix_to_win_locale().
Gijs Vermeulen
gijsvrm at gmail.com
Wed Jul 1 08:40:54 CDT 2020
Fixes a regression introduced by b6722aa7527abc71cb46ab75e4b875c288408d52
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49494
Signed-off-by: Gijs Vermeulen <gijsvrm at 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
More information about the wine-devel
mailing list