mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
bin/1942 curses problem in systat
truncate if too long for field. 2.2 candidate.
This commit is contained in:
parent
59a95186d2
commit
00cb92bf59
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue