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

Stefan Lippers-Hollmann s.l-h at gmx.de
Fri Dec 12 23:00:07 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 irsend.o irsend.c
irsend.c: In function 'main':
irsend.c:120: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/irsend.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/irsend.c b/tools/irsend.c
index 71cc95f..e5f00f3 100644
--- a/tools/irsend.c
+++ b/tools/irsend.c
@@ -117,7 +117,7 @@ int main(int argc, char **argv)
 			break;
 		switch (c) {
 		case 'h':
-			printf(help);
+			printf("%s", help);
 			return (EXIT_SUCCESS);
 		case 'v':
 			printf("%s %s\n", prog, VERSION);
-- 
2.1.3




More information about the Pkg-lirc-maint mailing list