tThe return value from fgetc() was being incorrectly cast to a gchar, thus caus… | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit d34d2fb42e543fc88c463d40b22c9774121d04a4 | |
parent 5471fb80fcc096a94059c1bcba629fed8faaa460 | |
Author: Ben Webb <[email protected]> | |
Date: Tue, 5 Feb 2002 11:22:56 +0000 | |
The return value from fgetc() was being incorrectly cast to a gchar, thus | |
causing an EOF test to fail on some systems. Now replaced by int. | |
Diffstat: | |
M src/serverside.c | 3 ++- | |
1 file changed, 2 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/src/serverside.c b/src/serverside.c | |
t@@ -1548,7 +1548,8 @@ static void HighScoreWriteHeader(FILE *fp) { | |
void ConvertHighScoreFile(void) { | |
/* Converts an old format high score file to the new format. */ | |
FILE *old,*backup; | |
- gchar *BackupFile,ch; | |
+ gchar *BackupFile; | |
+ int ch; | |
char *OldError=NULL,*BackupError=NULL; | |
struct HISCORE MultiScore[NUMHISCORE],AntiqueScore[NUMHISCORE]; | |