summaryrefslogtreecommitdiffstats
path: root/battlestar/com6.c
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>2000-09-22 08:19:21 +0000
committerjsm <jsm@NetBSD.org>2000-09-22 08:19:21 +0000
commit3131fb8024bb02e60d0b28942d59bb92d515cdae (patch)
treea922191fe35305d84ecab858e1226d50760d34a7 /battlestar/com6.c
parent283621ee3b4a30d66d08567b6507c0ba1580dbf1 (diff)
downloadbsdgames-darwin-3131fb8024bb02e60d0b28942d59bb92d515cdae.tar.gz
bsdgames-darwin-3131fb8024bb02e60d0b28942d59bb92d515cdae.zip
Remove all adjectives in parse(), since they are nowhere used. Fixes
crash on "carry old all" shown up by fuzz testing. Patch from Paul Janzen <pjanzen@foatdi.harvard.edu>.
Diffstat (limited to 'battlestar/com6.c')
-rw-r--r--battlestar/com6.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/battlestar/com6.c b/battlestar/com6.c
index 3dbe8823..5009293b 100644
--- a/battlestar/com6.c
+++ b/battlestar/com6.c
@@ -1,4 +1,4 @@
-/* $NetBSD: com6.c,v 1.18 2000/09/17 23:04:17 jsm Exp $ */
+/* $NetBSD: com6.c,v 1.19 2000/09/22 08:19:21 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)com6.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: com6.c,v 1.18 2000/09/17 23:04:17 jsm Exp $");
+__RCSID("$NetBSD: com6.c,v 1.19 2000/09/22 08:19:21 jsm Exp $");
#endif
#endif /* not lint */
@@ -242,8 +242,7 @@ light()
void
dooropen()
{ /* synonyms = {open, unlock} */
- while(wordtype[++wordnumber] == ADJS)
- ;
+ wordnumber++;
if (wordnumber <= wordcount && wordtype[wordnumber] == NOUNS
&& wordvalue[wordnumber] == DOOR) {
switch(position) {