aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/systat
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1996-11-02 15:15:40 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1996-11-02 15:15:40 +0000
commit00cb92bf5959ad2542adc716284f23bbda4bd36e (patch)
treedfebe9215c6e1bd7abfe070a135382985efdd031 /usr.bin/systat
parent59a95186d2b5c91e6f8ea074f00e2bb2e338fc49 (diff)
downloadsrc-00cb92bf5959ad2542adc716284f23bbda4bd36e.tar.gz
src-00cb92bf5959ad2542adc716284f23bbda4bd36e.zip
bin/1942 curses problem in systat
truncate if too long for field. 2.2 candidate.
Notes
Notes: svn path=/head/; revision=19330
Diffstat (limited to 'usr.bin/systat')
-rw-r--r--usr.bin/systat/netstat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/systat/netstat.c b/usr.bin/systat/netstat.c
index cc4adac94673..511d10f53511 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);
}