Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/traceroute6 be more careful about arg to errx?/warn...



details:   https://anonhg.NetBSD.org/src/rev/f22d7f67fda5
branches:  trunk
changeset: 494075:f22d7f67fda5
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri Jun 30 18:58:42 2000 +0000

description:
be more careful about arg to errx?/warnx? (do not pass variable directly,
it may contain "%").  from openbsd, via kame.

diffstat:

 usr.sbin/traceroute6/traceroute6.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 9c22b82876fd -r f22d7f67fda5 usr.sbin/traceroute6/traceroute6.c
--- a/usr.sbin/traceroute6/traceroute6.c        Fri Jun 30 18:52:24 2000 +0000
+++ b/usr.sbin/traceroute6/traceroute6.c        Fri Jun 30 18:58:42 2000 +0000
@@ -1,5 +1,5 @@
-/*     $NetBSD: traceroute6.c,v 1.11 2000/06/12 16:31:53 itojun Exp $  */
-/*     $KAME: traceroute6.c,v 1.29 2000/06/12 16:29:18 itojun Exp $    */
+/*     $NetBSD: traceroute6.c,v 1.12 2000/06/30 18:58:42 itojun Exp $  */
+/*     $KAME: traceroute6.c,v 1.30 2000/06/30 18:56:01 itojun Exp $    */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -79,7 +79,7 @@
 #else
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: traceroute6.c,v 1.11 2000/06/12 16:31:53 itojun Exp $");
+__RCSID("$NetBSD: traceroute6.c,v 1.12 2000/06/30 18:58:42 itojun Exp $");
 #endif
 #endif
 
@@ -898,7 +898,7 @@
 
        buf = ipsec_set_policy(policy, strlen(policy));
        if (buf == NULL) {
-               warnx(ipsec_strerror());
+               warnx("%s", ipsec_strerror());
                return -1;
        }
        (void)setsockopt(so, IPPROTO_IPV6, IPV6_IPSEC_POLICY,



Home | Main Index | Thread Index | Old Index