summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
Diffstat (limited to 'src/char')
-rw-r--r--src/char/inter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/char/inter.c b/src/char/inter.c
index 68be90e07..3704997c6 100644
--- a/src/char/inter.c
+++ b/src/char/inter.c
@@ -377,10 +377,11 @@ const char * geoip_countryname[253] = {"Unknown","Asia/Pacific Region","Europe",
unsigned char *geoip_cache;
void geoip_readdb(void){
struct stat bufa;
+ size_t fileReadCount;
FILE *db=fopen("./db/GeoIP.dat","r");
fstat(fileno(db), &bufa);
geoip_cache = (unsigned char *) malloc(sizeof(unsigned char) * bufa.st_size);
- fread(geoip_cache, sizeof(unsigned char), bufa.st_size, db);
+ fileReadCount = fread(geoip_cache, sizeof(unsigned char), bufa.st_size, db);
fclose(db);
ShowStatus("Finished Reading "CL_GREEN"GeoIP"CL_RESET" Database.\n");
}