Article View: net.games.hack
Article #906bug in 1.0.3 hack.engrave.c
From: Peter L DeWolf
Date: Wed, 31 Jul 1985 18:19
Date: Wed, 31 Jul 1985 18:19
24 lines
1207 bytes
1207 bytes
When you use the "E-" command, certain non-VAX versions of hack will crash.
The problem is that a zero pointer is being follwed. Here is a context
diff of the correction.
*** hack.engrave.c.orig Wed Jul 24 11:10:10 1985
--- hack.engrave.c Wed Jul 31 11:33:37 1985
***************
*** 141,147
if(otmp == &zeroobj)
otmp = 0;
! if(otmp->otyp == WAN_FIRE && otmp->spe) {
type = BURN;
otmp->spe--;
} else {
--- 141,147 -----
if(otmp == &zeroobj)
otmp = 0;
! if(otmp && otmp->otyp == WAN_FIRE && otmp->spe) {
type = BURN;
otmp->spe--;
} else {
Technical Details
Message-ID:
<298@mit-athena.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!harvard!think!mit-eddie!mit-athena!pldShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site mit-athena.UUCP Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!harvard!think!mit-eddie!mit-athena!pld From: pld@mit-athena.UUCP (Peter L DeWolf) Newsgroups: net.games.hack Subject: bug in 1.0.3 hack.engrave.c Message-ID: <298@mit-athena.UUCP> Date: Wed, 31-Jul-85 14:19:25 EDT Article-I.D.: mit-athe.298 Posted: Wed Jul 31 14:19:25 1985 Date-Received: Fri, 2-Aug-85 21:27:47 EDT Reply-To: pld@mit-athena.UUCP (Peter L DeWolf) Distribution: net Organization: MIT Project Athena Lines: 24