flee@shire (Felix Lee) (12/10/88)
Description:
1. "look" with no noun doesn't work.
2. Tess dereferences a NULL pointer when you try to get
the infinite improbability and don't type a decimal
point (i.e., "65" instead of ".65").
Fix:
Apply the following patch.
*** /tmp/,RCSt1a02895 Fri Dec 9 13:51:03 1988
--- tess.c Thu Dec 8 23:02:22 1988
***************
*** 531,537 ****
cprintf("What is the probability of getting this improbability? ");
gets( s );
p = strchr( s, '.' ); /* skip past decimal point */
! if (p) p++;
i = atoi( p );
if (i!=sum && i*10!=sum)
{
--- 531,537 ----
cprintf("What is the probability of getting this improbability? ");
gets( s );
p = strchr( s, '.' ); /* skip past decimal point */
! if (p) p++; else p = s;
i = atoi( p );
if (i!=sum && i*10!=sum)
{
***************
*** 1961,1966 ****
--- 1961,1969 ----
|| (cmd.vn>=39 && cmd.vn<=48) || cmd.vn==50 || cmd.vn==52
|| cmd.vn==58 )
goto branch; /* single verbs */
+
+ if (cmd.nn==0)
+ goto branch; /* no object */
if (obj[cmd.nn].loc==-9)
{
--
Felix Lee flee@shire.cs.psu.edu *!psuvax1!shire!flee