Format string paranoia.

This commit is contained in:
Kris Kennaway 2000-10-08 07:54:43 +00:00
parent 2a1c5efaa8
commit d35c03b40d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66809

View File

@ -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,