Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, DotBot, Yahoo!

Members: 0
Guests: 7
Stats
Files
Topics
Posts
Members
Newest Member
479
3,708
19,242
614
BenitoVirg
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWFOTE FUSS » fread_word/incomplete pfiles
Forum Rules | Mark all | Recent Posts

fread_word/incomplete pfiles
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Jun 3, 2005, 7:20 pm
Go to the top of the page
Go to the bottom of the page

Krylan
Fledgling
GroupMembers
Posts39
JoinedApr 14, 2005

Ok, some of you may have had the problem where if the MUD crashed or something, you would get incomplete pfiles, which in turn would lock up the MUD. Well, Zeos (owner of LG - high-velocity.org port 7777) did some research and looked at AFKmud's fread_word. He saw a difference, I didn't have a chance to test it, but I plan on doing so now. I figured I'd post the fix.
 bug( "Fread_word: word too long" );
    exit( 1 );
    return NULL; 

should be
 bug( "Fread_word: word too long" );
    *pword = '\0';
   return word;

If anyone sees any problems please let me know.
Krylan
       
Post is unread #2 Jun 4, 2005, 5:25 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

It shouldn't be an issue to modify that. I modified it in AFKMud because I didn't see why a string that was too long should be enough to stop execution.
       
Post is unread #3 Jun 4, 2005, 8:50 pm
Go to the top of the page
Go to the bottom of the page

Krylan
Fledgling
GroupMembers
Posts39
JoinedApr 14, 2005

I tested it and all went well. The MUD didn't go into a loop or crash when an incomplete pfile logged on. But, this only works if the missing part stops below the End line above objects. Otherwise, it'll still loop. Working on that fix now.
       
Pages:<< prev 1 next >>