There are definitly problems with hangman's getword(), as this and the
next bug report show.
I think that function would need a rewrite to fix this.
----- Forwarded message from Mark <mark@otford.kent.btinternet.co.uk> -----
From: Mark <mark@otford.kent.btinternet.co.uk>
Date: Sat, 19 Jan 2002 18:34:38 +0000
To: submit@bugs.debian.org
Subject: Bug#129996: bsdgames: hangman enters infinite loop if words in
wordfile are too short
Reply-To: Mark <mark@otford.kent.btinternet.co.uk>, 129996@bugs.debian.org
X-Spam-Status: No, hits=-2 required=5 tests=FORGED_RCVD_FOUND,DEBIAN_BTS,B
UGS_DEBIAN_ORG
Package: Bsdgames
Version: 2.9-3
When using a wordfile with no words longer than the minimum word length
as set at compile time in hangman.h, hangman enters an infinite loop.
eg., with the following words:
a
b
c
d
e
saved as words, the following will loop forever:
hangman -d words
Mark Kent
----- End forwarded message -----