projects
/
jansson.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84f7390
)
json_load_file: Open the input file in rb mode
author
Petri Lehtinen
<petri@digip.org>
Tue, 4 Oct 2011 18:11:26 +0000
(21:11 +0300)
committer
Petri Lehtinen
<petri@digip.org>
Tue, 4 Oct 2011 18:11:31 +0000
(21:11 +0300)
For maximum compatibility.
src/load.c
patch
|
blob
|
history
diff --git
a/src/load.c
b/src/load.c
index
8942dd9
..
d60a93e
100644
(file)
--- a/
src/load.c
+++ b/
src/load.c
@@
-947,7
+947,7
@@
json_t *json_load_file(const char *path, size_t flags, json_error_t *error)
jsonp_error_init(error, path);
- fp = fopen(path, "r");
+ fp = fopen(path, "r
b
");
if(!fp)
{
error_set(error, NULL, "unable to open %s: %s",