diff options
author | Petri Lehtinen <petri@digip.org> | 2011-11-14 21:15:17 +0200 |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2011-11-14 21:16:36 +0200 |
commit | c4a7bf90cf7a1b6fb1c701e2d071d1e236259e70 (patch) | |
tree | 0e689fd356750c945cbb84e9db680ee9ea0c3b76 | |
parent | 0931d938b049b4ab190593bd2755d03891d8bfd6 (diff) | |
download | jansson-2.2.zip jansson-2.2.tar.gz jansson-2.2.tar.bz2 |
Revert "json_dump_file: Open the output file in wb mode"2.2
JSON is read as text, so line endings should be preserved.
This reverts commit 32cd82127390b9fd5b5d090bc3c279d3e4d9f3a6.
-rw-r--r-- | src/dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |