projects
/
profile
/
ivi
/
jansson.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c6cb42
)
json_dump_file: Open the output file in wb mode
author
Petri Lehtinen
<petri@digip.org>
Fri, 7 Oct 2011 17:52:49 +0000
(20:52 +0300)
committer
Petri Lehtinen
<petri@digip.org>
Fri, 7 Oct 2011 17:52:54 +0000
(20:52 +0300)
For maximum compatibility.
src/dump.c
patch
|
blob
|
history
diff --git
a/src/dump.c
b/src/dump.c
index
d87d5c7
..
33112ba
100644
(file)
--- 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, "w
b
");
if(!output)
return -1;