Login
User Name:

Password:



Register

Forgot your password?
do_owhere recursive
Author: Khonsu
Submitted by: Khonsu
Changes list / Addchange
Author: Khonsu
Submitted by: Khonsu
6Dragons mp3 sound pack
Author: Vladaar
Submitted by: Vladaar
AFKMud 2.2.3
Author: AFKMud Team
Submitted by: Samson
SWFOTEFUSS 1.5
Author: Various
Submitted by: Samson
Users Online
Bing, Google, AhrefsBot

Members: 0
Guests: 35
Stats
Files
Topics
Posts
Members
Newest Member
489
3,792
19,646
597
Aileenutz

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,685
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 >>