diff options
author | kris <kris@FreeBSD.org> | 2000-10-08 07:54:43 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-10-08 07:54:43 +0000 |
commit | c84667a83fb82003021c9a3d89aa6ec8d3b6a454 (patch) | |
tree | 7a1e1da22d27df57bff303eb99463c4880761120 /contrib | |
parent | 96f85c70726a94ab2be7e3a1fd56ef6c02f0b318 (diff) | |
download | FreeBSD-src-c84667a83fb82003021c9a3d89aa6ec8d3b6a454.zip FreeBSD-src-c84667a83fb82003021c9a3d89aa6ec8d3b6a454.tar.gz |
Format string paranoia.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/traceroute/traceroute.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/traceroute/traceroute.c b/contrib/traceroute/traceroute.c index b3426d2..cc0bedb 100644 --- a/contrib/traceroute/traceroute.c +++ b/contrib/traceroute/traceroute.c @@ -660,10 +660,10 @@ main(int argc, char **argv) #if defined(IPSEC) && defined(IPSEC_POLICY_IPSEC) if (setpolicy(s, "in bypass") < 0) - errx(1, ipsec_strerror()); + errx(1, "%s", ipsec_strerror()); if (setpolicy(s, "out bypass") < 0) - errx(1, ipsec_strerror()); + errx(1, "%s", ipsec_strerror()); #endif /* defined(IPSEC) && defined(IPSEC_POLICY_IPSEC) */ if (sndsock < 0) { @@ -740,10 +740,10 @@ main(int argc, char **argv) #if defined(IPSEC) && defined(IPSEC_POLICY_IPSEC) if (setpolicy(sndsock, "in bypass") < 0) - errx(1, ipsec_strerror()); + errx(1, "%s", ipsec_strerror()); if (setpolicy(sndsock, "out bypass") < 0) - errx(1, ipsec_strerror()); + errx(1, "%s", ipsec_strerror()); #endif /* defined(IPSEC) && defined(IPSEC_POLICY_IPSEC) */ Fprintf(stderr, "%s to %s (%s)", @@ -923,7 +923,7 @@ setpolicy(so, policy) buf = ipsec_set_policy(policy, strlen(policy)); if (buf == NULL) { - warnx(ipsec_strerror()); + warnx("%s", ipsec_strerror()); return -1; } (void)setsockopt(so, IPPROTO_IP, IP_IPSEC_POLICY, |