Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] [PATCH] Buglet in server/savegame.c
Home

[Freeciv-Dev] [PATCH] Buglet in server/savegame.c

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] [PATCH] Buglet in server/savegame.c
From: Gaute B Strokkenes <gs234@xxxxxxxxx>
Date: Sun, 14 Oct 2001 20:40:50 +0100

I just spotted the following while going through some of Jason's
recent changes (though the bug is not Jason's).

strchr() has a misfeature in that if the character you are looking for
is 0, then it will return a pointer to the string's terminating NUL.
This causes us to do wrong things in the savegame loading code.

As an aside, I believe that PR 974 may be related to this bug, but I
do not have time to investigate.

Attachment: terrain_chars_fix.diff
Description: Text document

-- 
Big Gaute                               http://www.srcf.ucam.org/~gs234/
If this is the DATING GAME I want to know your FAVORITE PLANET!  Do I
 get th' MICROWAVE MOPED?

[Prev in Thread] Current Thread [Next in Thread]