From 9e1c7d6ce8b16dbfa6f11cb3c56d71e1b18f93e3 Mon Sep 17 00:00:00 2001 From: ekeeke31 Date: Tue, 2 Nov 2010 12:22:23 +0000 Subject: [PATCH] fixed config.ini being always reinitialized --- source/gx/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gx/config.c b/source/gx/config.c index 64439cf..b8a3ea1 100644 --- a/source/gx/config.c +++ b/source/gx/config.c @@ -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 */