Login
User Name:

Password:



Register

Forgot your password?
 I3 and IMC
Dec 26, 2024 3:27 am
By GatewaySysop
Hi - Clean SmaugFuss map/description issue..
Dec 15, 2024 7:29 pm
By Samson
AFKMud 2.2.4
Dec 10, 2024 4:09 pm
By Samson
Ubuntu 22.04.5 LTS
Dec 5, 2024 5:10 pm
By Remcon
SmaugFUSS 1.8/1.9
Nov 29, 2024 11:46 am
By Remcon
LOP 1.6
Author: Remcon
Submitted by: Remcon
SWFOTEFUSS 1.5.1
Author: Various
Submitted by: Samson
SWRFUSS 1.4.1
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.5
Author: Various
Submitted by: Samson
AFKMud 2.2.4
Author: AFKMud Team
Submitted by: Samson
Users Online
Bing, Google, Remcon

Members: 1
Guests: 18
Stats
Files
Topics
Posts
Members
Newest Member
496
3,808
19,708
594
MaisieMacl

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