Francois Gouget : kernel32/tests: Remove an unneeded sprintf() in the process tests.

Alexandre Julliard julliard at winehq.org
Mon Mar 23 15:47:09 CDT 2020


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

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Sun Mar 22 14:19:36 2020 +0100

kernel32/tests: Remove an unneeded sprintf() in the process tests.

The buffer content is not used before being overwritten again.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/kernel32/tests/process.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/dlls/kernel32/tests/process.c b/dlls/kernel32/tests/process.c
index 1889939fff..0f0889073b 100644
--- a/dlls/kernel32/tests/process.c
+++ b/dlls/kernel32/tests/process.c
@@ -1036,7 +1036,6 @@ static void test_CommandLine(void)
     WritePrivateProfileStringA(NULL, NULL, NULL, resfile);
     CloseHandle(info.hThread);
     CloseHandle(info.hProcess);
-    sprintf(buffer, "process dump %s", resfile);
     okChildString("Arguments", "argvA0", "dummy");
     okChildString("Arguments", "CommandLineA", buffer2);
     okChildStringWA("Arguments", "CommandLineW", buffer2);




More information about the wine-cvs mailing list