traceroute/traceroute-2.0.19-printf.patch
2013-12-03 19:23:21 +04:00

25 lines
687 B
Diff

diff -Nrbu traceroute-2.0.19/libsupp/clif.c traceroute-2.0.19-OK/libsupp/clif.c
--- traceroute-2.0.19/libsupp/clif.c 2007-08-06 19:20:17.000000000 +0400
+++ traceroute-2.0.19-OK/libsupp/clif.c 2013-12-03 19:18:36.100333217 +0400
@@ -792,9 +792,9 @@
if (l > 0) {
memset (buf, ' ', l);
buf[l] = '\0';
- fprintf (stderr, buf);
+ fprintf (stderr, "%s", buf);
} else
- fprintf (stderr, spacer);
+ fprintf (stderr, "%s", spacer);
endp = buf + width;
@@ -833,7 +833,7 @@
*p = '\0';
fprintf (stderr, "%s", buf);
- fprintf (stderr, spacer);
+ fprintf (stderr, "%s", spacer);
p++;
for (s = buf; *p; *s++ = *p++) ;