From 3131fb8024bb02e60d0b28942d59bb92d515cdae Mon Sep 17 00:00:00 2001 From: jsm Date: Fri, 22 Sep 2000 08:19:21 +0000 Subject: 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 . --- battlestar/cypher.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'battlestar/cypher.c') 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]) { -- cgit v1.2.3