From 00cb92bf5959ad2542adc716284f23bbda4bd36e Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sat, 2 Nov 1996 15:15:40 +0000 Subject: [PATCH] bin/1942 curses problem in systat truncate if too long for field. 2.2 candidate. --- usr.bin/systat/netstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/systat/netstat.c b/usr.bin/systat/netstat.c index cc4adac9467..511d10f5351 100644 --- a/usr.bin/systat/netstat.c +++ b/usr.bin/systat/netstat.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)netstat.c 8.1 (Berkeley) 6/6/93"; */ static const char rcsid[] = - "$Id$"; + "$Id: netstat.c,v 1.5 1996/10/28 19:08:13 wollman Exp $"; #endif /* not lint */ /* @@ -384,7 +384,7 @@ inetprint(in, port, proto) cp = index(line, '\0'); while (cp - line < 22) *cp++ = ' '; - *cp = '\0'; + line[22] = '\0'; waddstr(wnd, line); }