Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/traceroute6 sizeof pedant
details: https://anonhg.NetBSD.org/src/rev/b6b05f1aca9d
branches: trunk
changeset: 522438:b6b05f1aca9d
user: itojun <itojun%NetBSD.org@localhost>
date: Tue Feb 19 02:29:58 2002 +0000
description:
sizeof pedant
diffstat:
usr.sbin/traceroute6/traceroute6.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 86c75317afdf -r b6b05f1aca9d usr.sbin/traceroute6/traceroute6.c
--- a/usr.sbin/traceroute6/traceroute6.c Tue Feb 19 02:16:08 2002 +0000
+++ b/usr.sbin/traceroute6/traceroute6.c Tue Feb 19 02:29:58 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: traceroute6.c,v 1.17 2001/05/07 14:00:23 kleink Exp $ */
+/* $NetBSD: traceroute6.c,v 1.18 2002/02/19 02:29:58 itojun Exp $ */
/* $KAME: traceroute6.c,v 1.39 2000/12/22 15:11:05 itojun Exp $ */
/*
@@ -79,7 +79,7 @@
#else
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: traceroute6.c,v 1.17 2001/05/07 14:00:23 kleink Exp $");
+__RCSID("$NetBSD: traceroute6.c,v 1.18 2002/02/19 02:29:58 itojun Exp $");
#endif
#endif
@@ -1323,7 +1323,7 @@
if (first && !nflag) {
first = 0;
- if (gethostname(domain, MAXHOSTNAMELEN) == 0 &&
+ if (gethostname(domain, sizeof(domain)) == 0 &&
(cp = index(domain, '.')))
(void) strlcpy(domain, cp + 1, sizeof(domain));
else
Home |
Main Index |
Thread Index |
Old Index