Supply formatting string to fprintf (#530)

This restores compatibility with -Werror=format-security.
pull/535/head
gspr 2024-02-11 13:18:20 +01:00 committed by GitHub
parent faa2109707
commit b35737b066
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}