diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2007-06-15 01:25:06 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2007-06-15 01:25:06 +0000 |
commit | 415742d6773035fcc29589cbf93becbee4852463 (patch) | |
tree | e7e6f33c5905c174b90fc53c50188ec7879d3038 | |
parent | b3baaea0979a25b53b0b1c185c1d14b27979cf56 (diff) |
Don't truncate interface name.
Fixes PR 5460.
OK deraadt, agreed with by krw.
-rw-r--r-- | usr.bin/netstat/if.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c index b5d5f216582..69c1ed59202 100644 --- a/usr.bin/netstat/if.c +++ b/usr.bin/netstat/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.50 2007/06/04 12:20:24 henning Exp $ */ +/* $OpenBSD: if.c,v 1.51 2007/06/15 01:25:05 ray Exp $ */ /* $NetBSD: if.c,v 1.16.4.2 1996/06/07 21:46:46 thorpej Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94"; #else -static char *rcsid = "$OpenBSD: if.c,v 1.50 2007/06/04 12:20:24 henning Exp $"; +static char *rcsid = "$OpenBSD: if.c,v 1.51 2007/06/15 01:25:05 ray Exp $"; #endif #endif /* not lint */ @@ -155,7 +155,7 @@ intpr(int interval, u_long ifnetaddr) } } - printf("%-7.7s %-5ld ", name, ifnet.if_mtu); + printf("%-7s %-5ld ", name, ifnet.if_mtu); if (ifaddraddr == 0) { printf("%-11.11s ", "none"); printf("%-17.17s ", "none"); |