Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex, Sogou, Bing, DotBot

Members: 0
Guests: 8
Stats
Files
Topics
Posts
Members
Newest Member
477
3,705
19,232
608
LAntorcha
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 >>