hans@duttnph.UUCP (Hans Buurman) (12/10/88)
Tess (Beyond the Tesseract) dumps core when it asked for a probability,
and there's no decimal point in your answer (which means you're either
an optimist, a pessimist, or you don't know anything about
probabilistics :-).
The following patch fixes it (I tried not to look at the source, so
no warrants made):
#! /bin/sh
# This is a shell archive. Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file". To overwrite existing
# files, type "sh file -c". You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g.. If this archive is complete, you
# will see the following message at the end:
# "End of shell archive."
# Contents: tess.patch
# Wrapped by hans@duttnphg on Sat Dec 10 10:44:06 1988
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'tess.patch' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'tess.patch'\"
else
echo shar: Extracting \"'tess.patch'\" \(555 characters\)
sed "s/^X//" >'tess.patch' <<'END_OF_FILE'
X*** tess.c Sat Dec 10 10:33:31 1988
X--- tess.org Sat Dec 10 10:30:50 1988
X***************
X*** 532,538 ****
X gets( s );
X p = strchr( s, '.' ); /* skip past decimal point */
X if (p) p++;
X! if (!p || ((i=atoi(p)!=sum && i*10!=sum)))
X {
X prints("Wrong.");
X get_flag = 0;
X--- 532,539 ----
X gets( s );
X p = strchr( s, '.' ); /* skip past decimal point */
X if (p) p++;
X! i = atoi( p );
X! if (i!=sum && i*10!=sum)
X {
X prints("Wrong.");
X get_flag = 0;
END_OF_FILE
if test 555 -ne `wc -c <'tess.patch'`; then
echo shar: \"'tess.patch'\" unpacked with wrong size!
fi
# end of 'tess.patch'
fi
echo shar: End of shell archive.
exit 0
-----------------------------------------------------------------------------
Hans Buurman | hans@duttnph.UUCP
Pattern Recognition Group | mcvax!hp4nl!dutrun!duttnph!hans
Faculty of Applied Physics | tel. 31 - (0) 15 - 78 46 94
Delft University of Technology |