Rémi Bernon : user32/tests: Fix some format-overflow warnings.

Alexandre Julliard julliard at winehq.org
Wed Feb 12 16:21:06 CST 2020


Module: wine
Branch: master
Commit: b636f9cd5eeabcab418c6e7d66e34a0199f5ce56
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=b636f9cd5eeabcab418c6e7d66e34a0199f5ce56

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Tue Feb 11 19:09:31 2020 +0100

user32/tests: Fix some format-overflow warnings.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/tests/cursoricon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/user32/tests/cursoricon.c b/dlls/user32/tests/cursoricon.c
index 6687ebc4a8..7a5f955161 100644
--- a/dlls/user32/tests/cursoricon.c
+++ b/dlls/user32/tests/cursoricon.c
@@ -1287,7 +1287,7 @@ static void test_LoadImage_working_directory(void)
     char executable_path[MAX_PATH];
     int pos_slash;
     char old_PATH[10000];
-    char new_PATH[10000];
+    char new_PATH[10000 + MAX_PATH];
     BOOL ret;
 
     GetCurrentDirectoryA(ARRAY_SIZE(old_working_dir), old_working_dir);




More information about the wine-cvs mailing list