summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/inet6.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-03-14 20:51:26 +0000
committerbrian <brian@FreeBSD.org>2001-03-14 20:51:26 +0000
commitdd004da290c46c50b50ee5c919ad6eab35694921 (patch)
tree5e787a2429ce382c01d683306212b6100c2c4928 /usr.bin/netstat/inet6.c
parent8a3521bf30812a63d06554a1d7f88325346ba791 (diff)
downloadFreeBSD-src-dd004da290c46c50b50ee5c919ad6eab35694921.zip
FreeBSD-src-dd004da290c46c50b50ee5c919ad6eab35694921.tar.gz
MAXHOSTNAMELEN includes space for a NUL.
Don't roll our own version of trimdomain(), use the one in libutil. Not objected to by: freebsd-audit
Diffstat (limited to 'usr.bin/netstat/inet6.c')
-rw-r--r--usr.bin/netstat/inet6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/netstat/inet6.c b/usr.bin/netstat/inet6.c
index 6fbb39a..0dd9e4e 100644
--- a/usr.bin/netstat/inet6.c
+++ b/usr.bin/netstat/inet6.c
@@ -1015,7 +1015,7 @@ inet6name(in6p)
register char *cp;
static char line[50];
struct hostent *hp;
- static char domain[MAXHOSTNAMELEN + 1];
+ static char domain[MAXHOSTNAMELEN];
static int first = 1;
if (first && !nflag) {
OpenPOWER on IntegriCloud