fixed config.ini being always reinitialized

This commit is contained in:
ekeeke31 2010-11-02 12:22:23 +00:00
parent d3116defa7
commit 9e1c7d6ce8

View File

@ -50,7 +50,7 @@ void config_load(void)
char version[16];
fread(version, 16, 1, fp);
fclose(fp);
if (strcmp(version,CONFIG_VERSION))
if (strncmp(version,CONFIG_VERSION,16))
return;
/* read file */