From: Johannes Berg Date: Sun, 23 Nov 2008 19:55:23 +0000 (+0100) Subject: don't print string directly X-Git-Tag: v0.9.7~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=69283122a1cea2fc11e55a24d09389a6c1a875d9;p=thirdparty%2Fiw.git don't print string directly gcc warns about this (for security reasons) despite it clearly not begin a problem here. Pointed out by Alejandro Riveira Fernández . --- diff --git a/info.c b/info.c index 9b04719..7e2467f 100644 --- a/info.c +++ b/info.c @@ -16,7 +16,7 @@ static void print_flag(const char *name, int *open) printf(" ("); else printf(", "); - printf(name); + printf("%s", name); *open = 1; }