Commit b68b08b5 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

kernel32/tests: Fix sprintf() arguments (Coverity).

parent 23cbb01c
......@@ -4444,7 +4444,7 @@ static void test_AllocConsole(void)
if (skip_nt) return;
winetest_get_mainargs(&argv);
sprintf(buf, "\"%s\" console alloc_console", argv[0], GetCurrentProcessId());
sprintf(buf, "\"%s\" console alloc_console", argv[0]);
res = CreateProcessA(NULL, buf, NULL, NULL, FALSE, CREATE_NEW_CONSOLE, NULL, NULL, &si, &info);
ok(res, "CreateProcess failed: %u\n", GetLastError());
CloseHandle(info.hThread);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment