diff --git a/src/dump.c b/src/dump.c index 089474d..37f5a40 100644 --- a/src/dump.c +++ b/src/dump.c @@ -427,7 +427,7 @@ int json_dump_file(const json_t *json, const char *path, size_t flags) { int result; - FILE *output = fopen(path, "wb"); + FILE *output = fopen(path, "w"); if(!output) return -1;