[ADVAPI32_WINETEST] test_create_delete_svc(): Fix 'account' size (#2960)
authorSerge Gautherie <32623169+SergeGautherie@users.noreply.github.com>
Sat, 4 Jul 2020 13:24:46 +0000 (15:24 +0200)
committerGitHub <noreply@github.com>
Sat, 4 Jul 2020 13:24:46 +0000 (15:24 +0200)
Cherry-pick
https://source.winehq.org/git/wine.git/commit/56a83c585aeb071af29824399e22db5cdce0318a

modules/rostests/winetests/advapi32/service.c

index 8c13fbb..b92625f 100644 (file)
@@ -194,7 +194,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;
     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";
     static const CHAR pathname            [] = "we_dont_care.exe";
     static const CHAR empty               [] = "";
     static const CHAR servicename         [] = "Winetest";
     static const CHAR pathname            [] = "we_dont_care.exe";
     static const CHAR empty               [] = "";