tThe 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. - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit d34d2fb42e543fc88c463d40b22c9774121d04a4
(DIR) parent 5471fb80fcc096a94059c1bcba629fed8faaa460
(HTM) Author: Ben Webb <ben@salilab.org>
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(-)
---
(DIR) 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];