1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

sizeof pedant.

From: Mike Pechkin <mpech@prosoft.org.lv>
This commit is contained in:
itojun 2002-02-19 02:34:10 +00:00
parent fcea087a23
commit f48d33243a

View File

@ -1,4 +1,4 @@
/* $OpenBSD: traceroute6.c,v 1.17 2002/02/16 21:28:10 millert Exp $ */
/* $OpenBSD: traceroute6.c,v 1.18 2002/02/19 02:34:10 itojun Exp $ */
/* $KAME: traceroute6.c,v 1.39 2000/12/22 15:11:05 itojun Exp $ */
/*
@ -1316,7 +1316,7 @@ inetname(sa)
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