pass int instead of char to fgetc(). Noticed by pval@ on macppc after his
HD filled with a nice 33GB backup score file. -- Patch from pval@
This commit is contained in:
parent
5115d23a88
commit
a1e84a64f4
13
games/dopewars/patches/patch-src_serverside_c
Normal file
13
games/dopewars/patches/patch-src_serverside_c
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-src_serverside_c,v 1.1 2002/03/07 01:59:15 brad Exp $
|
||||
--- src/serverside.c.orig Sun Feb 3 13:28:28 2002
|
||||
+++ src/serverside.c Wed Mar 6 15:02:09 2002
|
||||
@@ -1548,7 +1548,8 @@ static void HighScoreWriteHeader(FILE *f
|
||||
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];
|
||||
|
Loading…
Reference in New Issue
Block a user