X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=src%2Fdump.c;h=33112ba782957f955aa229fbd02fbd6b03c22254;hb=32cd82127390b9fd5b5d090bc3c279d3e4d9f3a6;hp=d87d5c7a7a005d536e739c4858559b40a4e48429;hpb=9c6cb42f17fa1fb95edf766e2b44b128d1ebd08e;p=jansson.git diff --git a/src/dump.c b/src/dump.c index d87d5c7..33112ba 100644 --- a/src/dump.c +++ b/src/dump.c @@ -425,7 +425,7 @@ int json_dump_file(const json_t *json, const char *path, size_t flags) { int result; - FILE *output = fopen(path, "w"); + FILE *output = fopen(path, "wb"); if(!output) return -1;