Browse Source

Merge pull request #116 from boytm/master

On Windows, read CRLF ending file exist some problem that tested by MinG...
pull/119/head
Max Lv 10 years ago
parent
commit
a05585bbe2
1 changed files with 1 additions and 1 deletions
  1. 2
      src/jconf.c

2
src/jconf.c

@ -102,7 +102,7 @@ jconf_t *read_jconf(const char* file)
char *buf; char *buf;
json_value *obj; json_value *obj;
FILE *f = fopen(file, "r");
FILE *f = fopen(file, "rb");
if (f == NULL) FATAL("Invalid config path."); if (f == NULL) FATAL("Invalid config path.");
fseek(f, 0, SEEK_END); fseek(f, 0, SEEK_END);

Loading…
Cancel
Save