]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
don't print string directly
authorJohannes Berg <johannes@sipsolutions.net>
Sun, 23 Nov 2008 19:55:23 +0000 (20:55 +0100)
committerJohannes Berg <johannes@sipsolutions.net>
Sun, 23 Nov 2008 19:55:23 +0000 (20:55 +0100)
gcc warns about this (for security reasons) despite it clearly not begin a
problem here. Pointed out by Alejandro Riveira Fernández <ariveira@gmail.com>.

info.c

diff --git a/info.c b/info.c
index 9b0471959df4ca99706ec497d37ed9c754944f43..7e2467ff88e59e15823a369732c69d5af67b01ef 100644 (file)
--- 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;
 }