From 415742d6773035fcc29589cbf93becbee4852463 Mon Sep 17 00:00:00 2001 From: Ray Lai Date: Fri, 15 Jun 2007 01:25:06 +0000 Subject: Don't truncate interface name. Fixes PR 5460. OK deraadt, agreed with by krw. --- usr.bin/netstat/if.c | 6 +++--- 1 file 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"); -- cgit v1.2.3