[comp.sources.games.bugs] Wanderer 2.2 dumps core if $NAME is too long

" Maynard) (02/21/89)

I just isolated a bug in Wanderer 2.2 (the version that just came across
the net). It only occurs if the value of your $NAME environment variable
is longer than 19 characters (as mine is).
The symptom is that in curses mode, it dumps core as it writes the
message about "$NAME killed by a something-or-other with score 999 on
level 2"; the actual dump is in show_scores, but the error is in
savescore; the 80-character buffer is overrun, trashing the number of
prior entries to print. In EGA mode, the error is more pernicious: here,
instead of running through core until it takes a memory access error, it
runs off the end of the EGA memory, causing a memory fault. The only way
out of that situation is to kill -9 the shell from another console
screen.
 
The bypass is obvious: set $NEWNAME to a shorter value before invoking
wanderer.

This one could probably use some integrated fix in the actual program,
but that's an issue of style best left to the author.

-- 
Jay Maynard, EMT-P, K5ZC, PP-ASEL   | Never ascribe to malice that which can
uucp:        uunet!nuchat!   (eieio)| adequately be explained by stupidity.
    hoptoad!academ!uhnix1!splut!jay +----------------------------------------
{killer,bellcore}!texbell!          | "Less great!" "Tastes filling!"