summaryrefslogtreecommitdiff
path: root/games/banner/banner.c
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2003-10-01 05:59:38 +0000
committerChad Loder <cloder@cvs.openbsd.org>2003-10-01 05:59:38 +0000
commit1bb20811d7890e1a4fdeb8e6e1a7dcdbf5ba27c2 (patch)
treeabdf6af806bee0379106caad644dffde0d15b8b3 /games/banner/banner.c
parenta4d2f1025fe54fe040fa9a0bf493fbbe1f00158d (diff)
Correct off-by-one.
OK deraadt@
Diffstat (limited to 'games/banner/banner.c')
-rw-r--r--games/banner/banner.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/banner/banner.c b/games/banner/banner.c
index 49d532636e8..122ba60a022 100644
--- a/games/banner/banner.c
+++ b/games/banner/banner.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: banner.c,v 1.10 2003/06/03 03:01:38 millert Exp $ */
+/* $OpenBSD: banner.c,v 1.11 2003/10/01 05:59:37 cloder Exp $ */
/* $NetBSD: banner.c,v 1.4 1995/04/22 11:55:15 cgd Exp $ */
/*
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)banner.c 8.3 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: banner.c,v 1.10 2003/06/03 03:01:38 millert Exp $";
+static char rcsid[] = "$OpenBSD: banner.c,v 1.11 2003/10/01 05:59:37 cloder Exp $";
#endif
#endif /* not lint */
@@ -1123,7 +1123,7 @@ main(argc, argv)
max = 0;
linen = 0;
while (!term) {
- if (pc < 0 || pc > NBYTES) {
+ if (pc < 0 || pc >= NBYTES) {
printf("bad pc: %d\n",pc);
exit(1);
}