Skip to content

Commit

Permalink
Supply formatting string to fprintf
Browse files Browse the repository at this point in the history
This restores compatibility with -Werror=format-security.
  • Loading branch information
gspr committed Feb 10, 2024
1 parent faa2109 commit f3cd20b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/correctness/misc/preprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ bool TestDefines() {
if (result1 == expected1) { return true; }
else {
fprintf(stdout, "* ERROR: Pre-processor TestDefines error, got:");
fprintf(stdout, result1.c_str());
fprintf(stdout, "%s", result1.c_str());
return false;
}
}
Expand Down

0 comments on commit f3cd20b

Please sign in to comment.