-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compilation with -Werror=format-security
This patch avoids using fprintf with a string variable, i.e., fprintf(f, var). Such usage is discourage because if var can be attacker-controlled in any way, the application can be compromised. Therefore, -Werror=format-security complains about such usage. Better use fputs, which can't be misused, even though in this case the printed string is a constant.
- Loading branch information
1 parent
14a9cff
commit 4543a0b
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters