aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2011-11-14 21:15:17 +0200
committerPetri Lehtinen <petri@digip.org>2011-11-14 21:16:36 +0200
commitc4a7bf90cf7a1b6fb1c701e2d071d1e236259e70 (patch)
tree0e689fd356750c945cbb84e9db680ee9ea0c3b76
parent0931d938b049b4ab190593bd2755d03891d8bfd6 (diff)
downloadjansson-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.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;