Merge branch '2.2'
authorPetri Lehtinen <petri@digip.org>
Mon, 14 Nov 2011 19:16:42 +0000 (21:16 +0200)
committerPetri Lehtinen <petri@digip.org>
Mon, 14 Nov 2011 19:16:42 +0000 (21:16 +0200)
src/dump.c

index 089474d..37f5a40 100644 (file)
@@ -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;