summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-11-19 13:30:36 +0000
committerkris <kris@FreeBSD.org>2000-11-19 13:30:36 +0000
commit3cafbeab6d2974ec74515a738255486d7d38676c (patch)
tree921b60e49cd3d548ba5678d3321eb16a1bf8d939 /sbin
parent993abb53dc91a812eaf30811f6f23c48d69b230b (diff)
downloadFreeBSD-src-3cafbeab6d2974ec74515a738255486d7d38676c.zip
FreeBSD-src-3cafbeab6d2974ec74515a738255486d7d38676c.tar.gz
Format string paranoia
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ping/ping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
index 39e6bec..14db651 100644
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -471,7 +471,7 @@ main(argc, argv)
if (policy_in != NULL) {
buf = ipsec_set_policy(policy_in, strlen(policy_in));
if (buf == NULL)
- errx(EX_CONFIG, ipsec_strerror());
+ errx(EX_CONFIG, "%s", ipsec_strerror());
if (setsockopt(s, IPPROTO_IP, IP_IPSEC_POLICY,
buf, ipsec_get_policylen(buf)) < 0)
err(EX_CONFIG, "ipsec policy cannot be configured");
@@ -481,7 +481,7 @@ main(argc, argv)
if (policy_out != NULL) {
buf = ipsec_set_policy(policy_out, strlen(policy_out));
if (buf == NULL)
- errx(EX_CONFIG, ipsec_strerror());
+ errx(EX_CONFIG, "%s", ipsec_strerror());
if (setsockopt(s, IPPROTO_IP, IP_IPSEC_POLICY,
buf, ipsec_get_policylen(buf)) < 0)
err(EX_CONFIG, "ipsec policy cannot be configured");
OpenPOWER on IntegriCloud