Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
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
Bug in do_drag( )
Oct 8, 2017, 12:40 am
By GatewaySysop
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
Beastmaster 6D sound files
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, Google, Bing, DotBot

Members: 0
Guests: 10
Stats
Files
Topics
Posts
Members
Newest Member
476
3,704
19,231
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Bugfix Lists » AFKMud Bugfix List » [Bug] The area header saves t...
Forum Rules | Mark all | Recent Posts

[Bug] The area header saves timestamps improperly
< Newer Topic :: Older Topic > AFKMud 2.01

Pages:<< prev 1 next >>
Post is unread #1 Dec 16, 2007, 1:47 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Bug: The area header saves timestamps improperly
Danger: Critical - Results in a crash during bootup.
Discovered in: AFKMud 2.01
Found by: Lazerous ( originally )
Fixed by: Samson

---

This is a repost of a missing bugfix - it is not necessary to apply this if you are using AFKMud 2.02.

area.cpp, fwrite_area_header

Locate:
   fprintf( fpout, "Dates           %l %l\n", (long)area->creation_date, (long)area->install_date );


Change to:
   fprintf( fpout, "Dates           %ld %ld\n", (long)area->creation_date, (long)area->install_date );


This one is rather subtle and might not even look like a problem. But it is. There is no such format tag as %l in the printf family. Since the date values are long integers, the tag actually needs to be %ld. The results of the bad operation are unpredictable and will often lead to unexplained crashes during bootup that don't seem related.
       
Pages:<< prev 1 next >>