[Pkg-lirc-maint] [PATCH 09/13] irrecord: fix FTBS with -Werror=format-security enabled

Stefan Lippers-Hollmann s.l-h at gmx.de
Fri Dec 12 23:00:12 UTC 2014


gcc -DHAVE_CONFIG_H -I. -I..  -I../lib -I..  -g -Wall -Wp,-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2  -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security  -c -o irrecord.o irrecord.c
irrecord.c: In function 'parse_options':
irrecord.c:342:4: error: format not a string literal and no format arguments [-Werror=format-security]
    printf(help);
    ^

Signed-off-by: Stefan Lippers-Hollmann <s.l-h at gmx.de>
---
 tools/irrecord.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/irrecord.c b/tools/irrecord.c
index f52328c..96ebe55 100644
--- a/tools/irrecord.c
+++ b/tools/irrecord.c
@@ -339,7 +339,7 @@ static void parse_options(int argc, char** const argv)
 			options_set_opt("irrecord:driver", optarg);
 			break;
 		case 'h':
-			printf(help);
+			printf("%s", help);
 			exit(EXIT_SUCCESS);
 		case 'i':
 			options_set_opt("irrecord:invert", "True");
-- 
2.1.3




More information about the Pkg-lirc-maint mailing list