Commit b07129ba authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

winetest: Don't use plain strings as format specifiers.

When they contain a percent character they would, at best, not be printed correctly, and at worst cause a crash.
parent be6cc4f1
......@@ -1122,7 +1122,7 @@ run_tests (char *logname, char *outdir)
logfile = create_temp_file( tmpname );
logname = tmpname;
}
report (R_OUT, logname);
report (R_OUT, "%s", logname);
if (logfile == INVALID_HANDLE_VALUE)
report (R_FATAL, "Could not open logfile: %u", GetLastError());
......@@ -1148,7 +1148,7 @@ run_tests (char *logname, char *outdir)
if (!newdir && (!outdir || GetLastError() != ERROR_ALREADY_EXISTS))
report (R_FATAL, "Could not create directory %s (%d)", tempdir, GetLastError());
report (R_DIR, tempdir);
report (R_DIR, "%s", tempdir);
xprintf ("Version 4\n");
xprintf ("Tests from build %s\n", build_id[0] ? build_id : "-" );
......
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