diff -Naur ax25-tools-0.0.10-rc4.orig/6pack/m6pack.c ax25-tools-0.0.10-rc4/6pack/m6pack.c
--- ax25-tools-0.0.10-rc4.orig/6pack/m6pack.c 2013-06-09 13:08:33.000000000 -0500
+++ ax25-tools-0.0.10-rc4/6pack/m6pack.c 2015-09-21 09:02:02.845385771 -0500
@@ -444,18 +444,18 @@
return 1;
case ':':
case '?':
- fprintf(stderr, usage_string);
+ fprintf(stderr,"%s", usage_string);
return 1;
}
}
if ((argc - optind) < 2 && ptmxdevices == 0) {
- fprintf(stderr, usage_string);
+ fprintf(stderr, "%s", usage_string);
return 1;
}
if ((argc - optind) < 1 && ptmxdevices > 0) {
- fprintf(stderr, usage_string);
+ fprintf(stderr, "%s", usage_string);
return 1;
}
diff -Naur ax25-tools-0.0.10-rc4.orig/ax25/axparms.c ax25-tools-0.0.10-rc4/ax25/axparms.c
--- ax25-tools-0.0.10-rc4.orig/ax25/axparms.c 2013-06-09 13:08:33.000000000 -0500
+++ ax25-tools-0.0.10-rc4/ax25/axparms.c 2015-09-21 08:46:59.757122339 -0500
@@ -59,7 +59,7 @@
int i, j;
int ip_mode = ' ';
FILE* fp;
- char routebuf[80];
+ const char routebuf[80];
if (strcmp(argv[2], "add") == 0) {
ax25_route.port_addr = *callsign;
@@ -139,7 +139,7 @@
return 1;
}
while (fgets(routebuf,80,fp))
- printf(routebuf);
+ printf("%s", routebuf);
puts("");
}
diff -Naur ax25-tools-0.0.10-rc4.orig/kiss/mkiss.c ax25-tools-0.0.10-rc4/kiss/mkiss.c
--- ax25-tools-0.0.10-rc4.orig/kiss/mkiss.c 2013-06-09 13:08:33.000000000 -0500
+++ ax25-tools-0.0.10-rc4/kiss/mkiss.c 2015-09-21 08:59:16.299898538 -0500
@@ -467,18 +467,18 @@
return 1;
case ':':
case '?':
- fprintf(stderr, usage_string);
+ fprintf(stderr, "%s", usage_string);
return 1;
}
}
if ((argc - optind) < 2 && ptmxdevices == 0) {
- fprintf(stderr, usage_string);
+ fprintf(stderr, "%s", usage_string);
return 1;
}
if ((argc - optind) < 1 && ptmxdevices > 0) {
- fprintf(stderr, usage_string);
+ fprintf(stderr, "%s", usage_string);
return 1;
}
diff -Naur ax25-tools-0.0.10-rc4.orig/netrom/nrparms.c ax25-tools-0.0.10-rc4/netrom/nrparms.c
--- ax25-tools-0.0.10-rc4.orig/netrom/nrparms.c 2013-06-09 13:08:33.000000000 -0500
+++ ax25-tools-0.0.10-rc4/netrom/nrparms.c 2015-09-21 09:04:28.841799966 -0500
@@ -210,7 +210,7 @@
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 @@
if (strncmp(argv[1], "-r", 2) == 0) {
if (argc < 6) {
- fprintf(stderr, routes_usage);
+ fprintf(stderr, "%s", routes_usage);
close(s);
return 1;
}
diff -Naur ax25-tools-0.0.10-rc4.orig/rose/rsparms.c ax25-tools-0.0.10-rc4/rose/rsparms.c
--- ax25-tools-0.0.10-rc4.orig/rose/rsparms.c 2013-06-09 13:08:33.000000000 -0500
+++ ax25-tools-0.0.10-rc4/rose/rsparms.c 2015-09-21 09:09:48.051400618 -0500
@@ -19,7 +19,7 @@
#include "../pathnames.h"
-char nodes_usage[] = "usage: rsparms -nodes add|del nodeaddr[/mask] port neighbour [digis...]\n rsparms -nodes list\n";
+static char nodes_usage[] = "usage: rsparms -nodes add|del nodeaddr[/mask] port neighbour [digis...]\n rsparms -nodes list\n";
/* print the Rose neighbour whose number is supplied */
void printnb(char *neigh)
@@ -68,7 +68,7 @@
int args;
if (argc < 3) {
- fprintf(stderr, nodes_usage);
+ fprintf(stderr, "%s", nodes_usage);
exit(1);
}
@@ -114,7 +114,7 @@
}
if (argc < 6) {
- fprintf(stderr, nodes_usage);
+ fprintf(stderr, "%s", nodes_usage);
exit(1);
}