Login
User Name:

Password:



Register

Forgot your password?
AFKMud 2.2.3
Author: AFKMud Team
Submitted by: Samson
SWFOTEFUSS 1.5
Author: Various
Submitted by: Samson
SWRFUSS 1.4
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.4
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.3
Author: Various
Submitted by: Samson
Users Online
CommonCrawl, SemrushBot, Bing, Yandex, AhrefsBot, Google

Members: 0
Guests: 5
Stats
Files
Topics
Posts
Members
Newest Member
486
3,758
19,453
572
danielw

Today's Birthdays
There are no member birthdays today.
» SmaugMuds » Bugfix Lists » AFKMud Bugfix List » [Bug] mptrlook command crashe...
Forum Rules | Mark all | Recent Posts

[Bug] mptrlook command crashes with an empty target room argument
< Newer Topic :: Older Topic > AFKMud 2.02

Pages:<< prev 1 next >>
Post is unread #1 Nov 23, 2007 12:59 pm   
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,665
JoinedJan 1, 2002

 
Bug: mptrlook command crashes with an empty target room argument
Danger: High - Crash bug. A missing room argument crashes the game.
Discovered in: AFKMud 2.02
Found by: Samson
Fixed by: Samson

---

mud_comm.cpp, do_mptrlook

Locate:
   if( arg2 && arg2[0] == '\0' )
      location = ch->in_room;


Change to:
   if( !arg2 || arg2[0] == '\0' )
      location = ch->in_room;


The ifcheck in this small chunk is meant to see if the arg2 value is empty, blank, or otherwise invalid and default to using the room the PC is in as the target. However the check is setup wrong and would actually result in a crash condition if the argument is empty because the location value is then never assigned.

Pages:<< prev 1 next >>