summaryrefslogtreecommitdiff
path: root/usr.bin/systat/keyboard.c
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-06-04 23:06:18 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-06-04 23:06:18 +0000
commit5f8ce151040563fc391ecc617ce828a11cb01ac6 (patch)
tree4d9695115b2cca3f4c233bb3c324fae9b8ef4c1d /usr.bin/systat/keyboard.c
parentc9bce2fb7677033074cc66af2d62942434193dd0 (diff)
Fix one-byte overflow; millert@ ok
Diffstat (limited to 'usr.bin/systat/keyboard.c')
-rw-r--r--usr.bin/systat/keyboard.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/systat/keyboard.c b/usr.bin/systat/keyboard.c
index 0afc48008d9..120dc0cc38d 100644
--- a/usr.bin/systat/keyboard.c
+++ b/usr.bin/systat/keyboard.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: keyboard.c,v 1.4 1997/07/15 13:42:05 kstailey Exp $ */
+/* $OpenBSD: keyboard.c,v 1.5 2000/06/04 23:06:17 aaron Exp $ */
/* $NetBSD: keyboard.c,v 1.2 1995/01/20 08:51:59 jtc Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)keyboard.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: keyboard.c,v 1.4 1997/07/15 13:42:05 kstailey Exp $";
+static char rcsid[] = "$OpenBSD: keyboard.c,v 1.5 2000/06/04 23:06:17 aaron Exp $";
#endif /* not lint */
#include <ctype.h>
@@ -110,7 +110,7 @@ keyboard()
clrtoeol();
continue;
}
- if (col >= sizeof(line)) {
+ if (col >= sizeof(line) - 1) {
/* line too long */
beep();
continue;