Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Fix for hack 1.0.3 engrave bug

0 views
Skip to first unread message

Steve Kelem ATW

unread,
Jan 21, 1987, 1:23:46 PM1/21/87
to
Problem: Hack 1.0.3 dumps core if you try to "engrave(write)" something
on the floor with your finger. This is caused by dereferencing a nil pointer.
This is tolerable on a Vax, but not on a Sun.

Fix: The following change in the file "engrave.c" will avoid dereferencing
a nil pointer.

144c144
< if(otmp->otyp == WAN_FIRE && otmp->spe) {
---
> if(otmp && otmp->otyp == WAN_FIRE && otmp->spe) {

0 new messages