aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dump.c2
1 files changed, 1 insertions, 1 deletions
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;