[Pkg-lirc-maint] [PATCH 10/13] xmode2: fix FTBS with -Werror=format-security enabled
Stefan Lippers-Hollmann
s.l-h at gmx.de
Fri Dec 12 23:00:13 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 xmode2.o xmode2.c
xmode2.c: In function 'parse_options':
xmode2.c:142:3: error: format not a string literal and no format arguments [-Werror=format-security]
case 'h':printf(help);
^
Signed-off-by: Stefan Lippers-Hollmann <s.l-h at gmx.de>
---
tools/xmode2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/xmode2.c b/tools/xmode2.c
index 6a45d4c..24b2470 100644
--- a/tools/xmode2.c
+++ b/tools/xmode2.c
@@ -139,7 +139,7 @@ static void parse_options(int argc, char** const argv)
add_defaults();
while ((c = getopt_long(argc, argv, "U:hvd:H:g:t:mr", options, NULL)) != -1) {
switch (c) {
- case 'h':printf(help);
+ case 'h':printf("%s", help);
exit (EXIT_SUCCESS);
case 'H':
if (hw_choose_driver(optarg) != 0) {
--
2.1.3
More information about the Pkg-lirc-maint
mailing list