Path: utzoo!utgpu!tmsoft!dptcdc!dpmizar!swrinde!cs.utexas.edu!rutgers!mailrus!uflorida!gatech!psuvax1!shire!flee From: flee@shire (Felix Lee) Newsgroups: comp.sources.games.bugs Subject: Re: v05i094: tess - beyond the tesseract, an abstract adventure game Message-ID: <4154@psuvax1.cs.psu.edu> Date: 9 Dec 88 19:24:03 GMT References: <3348@tekred.TEK.COM> Sender: news@psuvax1.cs.psu.edu Reply-To: flee@shire.cs.psu.edu (Felix Lee) Organization: Penn State University Computer Science Lines: 44 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