diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2015-05-18 23:25:52 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-05-18 23:25:52 +0200 |
commit | 266ed524723b1d6a7d2b4c9d6fefd293b51629df (patch) | |
tree | 1b81447906fa3d9efdc91c0406cfd6a9dd4909b1 /netrom/nrparms.c | |
parent | bcaf37adf6ee05abd9f30a56973d77fecd663ed5 (diff) |
nrparms: Fix harmless -Werror=format-security build error.
make[2]: Entering directory '/home/ralf/src/ax25/ax25-tools/netrom'
gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -MT nrparms.o -MD -MP -MF .deps/nrparms.Tpo -c -o nrparms.o nrparms.c
nrparms.c: In function ‘main’:
nrparms.c:213:4: error: format not a string literal and no format arguments [-Werror=format-security]
fprintf(stderr, nodes_usage);
^
nrparms.c:224:4: error: format not a string literal and no format arguments [-Werror=format-security]
fprintf(stderr, routes_usage);
^
cc1: some warnings being treated as errors
Makefile:438: recipe for target 'nrparms.o' failed
make[2]: *** [nrparms.o] Error 1
make[2]: Leaving directory '/home/ralf/src/ax25/ax25-tools/netrom'
The strings are constants in the application code itself so no security
issue.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'netrom/nrparms.c')
-rw-r--r-- | netrom/nrparms.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/netrom/nrparms.c b/netrom/nrparms.c index b179416..db7ce31 100644 --- a/netrom/nrparms.c +++ b/netrom/nrparms.c @@ -210,7 +210,7 @@ int main(int argc, char *argv[]) if (strncmp(argv[1], "-n", 2) == 0) { if (argc < 9) { - fprintf(stderr, nodes_usage); + fprintf(stderr, "%s", nodes_usage); close(s); return 1; } @@ -221,7 +221,7 @@ int main(int argc, char *argv[]) if (strncmp(argv[1], "-r", 2) == 0) { if (argc < 6) { - fprintf(stderr, routes_usage); + fprintf(stderr, "%s", routes_usage); close(s); return 1; } |