Rémi Bernon : advapi32/tests: Fix some format-overflow warnings.
Alexandre Julliard
julliard at winehq.org
Tue Feb 11 15:44:56 CST 2020
Module: wine
Branch: master
Commit: 56a83c585aeb071af29824399e22db5cdce0318a
URL: https://source.winehq.org/git/wine.git/?a=commit;h=56a83c585aeb071af29824399e22db5cdce0318a
Author: Rémi Bernon <rbernon at codeweavers.com>
Date: Tue Feb 11 19:09:23 2020 +0100
advapi32/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/advapi32/tests/service.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/advapi32/tests/service.c b/dlls/advapi32/tests/service.c
index 484167656f..43d9738627 100644
--- a/dlls/advapi32/tests/service.c
+++ b/dlls/advapi32/tests/service.c
@@ -195,7 +195,7 @@ static void test_create_delete_svc(void)
SC_HANDLE scm_handle, svc_handle1, svc_handle2;
CHAR username[UNLEN + 1], domain[MAX_PATH];
DWORD user_size = UNLEN + 1;
- CHAR account[UNLEN + 3];
+ CHAR account[MAX_PATH + UNLEN + 1];
static const CHAR servicename [] = "winetest_create_delete";
static const CHAR pathname [] = "we_dont_care.exe";
static const CHAR empty [] = "";
More information about the wine-cvs
mailing list