diff options
author | jsm <jsm@NetBSD.org> | 2000-09-22 08:19:21 +0000 |
---|---|---|
committer | jsm <jsm@NetBSD.org> | 2000-09-22 08:19:21 +0000 |
commit | 3131fb8024bb02e60d0b28942d59bb92d515cdae (patch) | |
tree | a922191fe35305d84ecab858e1226d50760d34a7 /battlestar/cypher.c | |
parent | 283621ee3b4a30d66d08567b6507c0ba1580dbf1 (diff) | |
download | bsdgames-darwin-3131fb8024bb02e60d0b28942d59bb92d515cdae.tar.gz bsdgames-darwin-3131fb8024bb02e60d0b28942d59bb92d515cdae.tar.zst 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/cypher.c')
-rw-r--r-- | battlestar/cypher.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/battlestar/cypher.c b/battlestar/cypher.c index 0f6c92cc..71cb11d7 100644 --- a/battlestar/cypher.c +++ b/battlestar/cypher.c @@ -1,4 +1,4 @@ -/* $NetBSD: cypher.c,v 1.15 2000/09/21 17:44:34 jsm Exp $ */ +/* $NetBSD: cypher.c,v 1.16 2000/09/22 08:19:21 jsm Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)cypher.c 8.2 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: cypher.c,v 1.15 2000/09/21 17:44:34 jsm Exp $"); +__RCSID("$NetBSD: cypher.c,v 1.16 2000/09/22 08:19:21 jsm Exp $"); #endif #endif /* not lint */ @@ -54,8 +54,6 @@ cypher() char *filename, *rfilename; size_t filename_len; - while (wordtype[wordnumber] == ADJS) - wordnumber++; while (wordnumber <= wordcount) { switch (wordvalue[wordnumber]) { |