diff options
author | fenner <fenner@FreeBSD.org> | 1999-02-16 19:05:09 +0000 |
---|---|---|
committer | fenner <fenner@FreeBSD.org> | 1999-02-16 19:05:09 +0000 |
commit | f3e30dacf98c8cd90e0a209a43b6023793cc0292 (patch) | |
tree | 5cc101eab5017e44b6987a42044c242d55677913 /usr.bin/netstat | |
parent | e1352d91b35b788621467fe456e93d03db7d68b3 (diff) | |
download | FreeBSD-src-f3e30dacf98c8cd90e0a209a43b6023793cc0292.zip FreeBSD-src-f3e30dacf98c8cd90e0a209a43b6023793cc0292.tar.gz |
Fix off-by-one error.
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r-- | usr.bin/netstat/unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/netstat/unix.c b/usr.bin/netstat/unix.c index e740df3..195588e 100644 --- a/usr.bin/netstat/unix.c +++ b/usr.bin/netstat/unix.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)unix.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id: unix.c,v 1.9 1998/07/06 21:01:27 bde Exp $"; + "$Id: unix.c,v 1.10 1998/08/08 08:13:04 phk Exp $"; #endif /* not lint */ /* @@ -78,7 +78,7 @@ unixpr() struct xunpcb *xunp; char mibvar[sizeof "net.local.seqpacket.pcblist"]; - for (type = SOCK_STREAM; type < SOCK_SEQPACKET; type++) { + for (type = SOCK_STREAM; type <= SOCK_SEQPACKET; type++) { sprintf(mibvar, "net.local.%s.pcblist", socktype[type]); len = 0; |