summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpjanzen <pjanzen@openbsd.org>2000-09-23 02:51:58 +0000
committerpjanzen <pjanzen@openbsd.org>2000-09-23 02:51:58 +0000
commit82e8f1f04d7df3ccc3181056a0f1e7350726314e (patch)
tree3001d94ee984ad504c0420b23e026b9c507440f2
parentAngelos you forgot this one !! (diff)
downloadwireguard-openbsd-82e8f1f04d7df3ccc3181056a0f1e7350726314e.tar.xz
wireguard-openbsd-82e8f1f04d7df3ccc3181056a0f1e7350726314e.zip
off by one; jsm@netbsd.org
-rw-r--r--games/battlestar/battlestar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/battlestar/battlestar.c b/games/battlestar/battlestar.c
index 68210cd6461..9f8a3247c19 100644
--- a/games/battlestar/battlestar.c
+++ b/games/battlestar/battlestar.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: battlestar.c,v 1.9 2000/09/17 21:28:30 pjanzen Exp $ */
+/* $OpenBSD: battlestar.c,v 1.10 2000/09/23 02:51:58 pjanzen Exp $ */
/* $NetBSD: battlestar.c,v 1.3 1995/03/21 15:06:47 cgd Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)battlestar.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$OpenBSD: battlestar.c,v 1.9 2000/09/17 21:28:30 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: battlestar.c,v 1.10 2000/09/23 02:51:58 pjanzen Exp $";
#endif
#endif /* not lint */
@@ -100,7 +100,7 @@ start:
run:
next = getcom(mainbuf, sizeof mainbuf, ">-: ",
"Please type in something.");
- for (wordcount = 0; next && wordcount < NWORD; wordcount++)
+ for (wordcount = 0; next && wordcount < NWORD - 1; wordcount++)
next = getword(next, words[wordcount], -1);
parse();
switch (cypher()) {