summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-06-09 02:39:18 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-06-09 02:39:18 +0000
commitc645793bc2c9536cd259f4bf722d057e4a2f423a (patch)
tree691a44565705003cc63d67ac1dc9ba3156ac4322 /usr.sbin
parentc90efc20c7570b0e3a39e75514216e9d7d11c47b (diff)
strlcpy fix, PR 2727
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/traceroute6/traceroute6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/traceroute6/traceroute6.c b/usr.sbin/traceroute6/traceroute6.c
index 6c7caa02fb3..eabad025dd2 100644
--- a/usr.sbin/traceroute6/traceroute6.c
+++ b/usr.sbin/traceroute6/traceroute6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: traceroute6.c,v 1.23 2002/06/09 02:15:54 deraadt Exp $ */
+/* $OpenBSD: traceroute6.c,v 1.24 2002/06/09 02:39:17 itojun Exp $ */
/* $KAME: traceroute6.c,v 1.50 2002/05/26 13:12:07 itojun Exp $ */
/*
@@ -1159,7 +1159,7 @@ packet_ok(mhdr, cc, seq)
if (getnameinfo((struct sockaddr *)from, from->sin6_len,
sbuf, sizeof(sbuf), NULL, 0, NI_NUMERICHOST) != 0)
- strlcpy(sbuf, "invalid", sizeof(hbuf));
+ strlcpy(sbuf, "invalid", sizeof(sbuf));
printf("\n%d bytes from %s to %s", cc, sbuf,
rcvpktinfo ? inet_ntop(AF_INET6, &rcvpktinfo->ipi6_addr,
dbuf, sizeof(dbuf)) : "?");