Return to netstat.c CVS log | Up to [local] / src / usr.bin / systat |
version 1.9, 1997/12/19 09:22:55 | version 1.10, 1997/12/19 09:36:50 | ||
---|---|---|---|
|
|
||
ntohs((u_short)port)); | ntohs((u_short)port)); | ||
/* pad to full column to clear any garbage */ | /* pad to full column to clear any garbage */ | ||
cp = strchr(line, '\0'); | cp = strchr(line, '\0'); | ||
while (cp - line < 22) | while (cp - line < 22 && cp - line < sizeof line-1) | ||
*cp++ = ' '; | *cp++ = ' '; | ||
*cp = '\0'; | *cp = '\0'; | ||
waddstr(wnd, line); | waddstr(wnd, line); |