summaryrefslogtreecommitdiff
path: root/usr.sbin/pstat/pstat.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-09-08 23:31:56 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-09-08 23:31:56 +0000
commitf93b9405add7618ee05d35cb7bd7bd170c87a0b9 (patch)
treea73195dafa31f6948c513eb1f0369d6e7ba6b060 /usr.sbin/pstat/pstat.c
parent1afdf6ba43449ff8bbe667524e4e95c1b9541c61 (diff)
insufficient size for mib; andrushock@korovino.net
Diffstat (limited to 'usr.sbin/pstat/pstat.c')
-rw-r--r--usr.sbin/pstat/pstat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index 733f71acf06..bcfa9ad4e6b 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pstat.c,v 1.44 2003/06/02 23:36:54 millert Exp $ */
+/* $OpenBSD: pstat.c,v 1.45 2003/09/08 23:31:55 deraadt Exp $ */
/* $NetBSD: pstat.c,v 1.27 1996/10/23 22:50:06 cgd Exp $ */
/*-
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
from: static char sccsid[] = "@(#)pstat.c 8.9 (Berkeley) 2/16/94";
#else
-static char *rcsid = "$OpenBSD: pstat.c,v 1.44 2003/06/02 23:36:54 millert Exp $";
+static char *rcsid = "$OpenBSD: pstat.c,v 1.45 2003/09/08 23:31:55 deraadt Exp $";
#endif
#endif /* not lint */
@@ -755,7 +755,7 @@ ttymode(void)
{
struct ttylist_head tty_head;
struct tty *tp, tty;
- int mib[2], ntty, i;
+ int mib[3], ntty, i;
struct itty itty, *itp;
size_t nlen;