From e02edef12d9a08cd035cf34f1aa75311fb7565be Mon Sep 17 00:00:00 2001 From: Lorenzo Manacorda Date: Fri, 25 Jan 2019 17:37:17 +0100 Subject: [PATCH] fbpdf: fix format-security error Using printf without a formatting string is a security vulnerability, and most distributions now default to using `-Werror=format-security`. See https://fedoraproject.org/wiki/Format-Security-FAQ --- fbpdf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fbpdf.c b/fbpdf.c index 6caa08f..fad6cfc 100644 --- a/fbpdf.c +++ b/fbpdf.c @@ -347,7 +347,7 @@ int main(int argc, char *argv[]) { int i = 1; if (argc < 2) { - printf(usage); + printf("%s", usage); return 1; } strcpy(filename, argv[argc - 1]);