Merge pull request #116 from boytm/master

On Windows, read CRLF ending file exist some problem that tested by MinG...
This commit is contained in:
Max Lv
2014-09-16 17:49:33 +08:00
+1 -1
View File
@@ -102,7 +102,7 @@ jconf_t *read_jconf(const char* file)
char *buf;
json_value *obj;
FILE *f = fopen(file, "r");
FILE *f = fopen(file, "rb");
if (f == NULL) FATAL("Invalid config path.");
fseek(f, 0, SEEK_END);