From 6362032513fc7c41c02a41c7673aa7421aabe297 Mon Sep 17 00:00:00 2001 From: Petri Lehtinen Date: Tue, 4 Oct 2011 21:11:26 +0300 Subject: [PATCH] json_load_file: Open the input file in rb mode For maximum compatibility. --- src/load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/load.c b/src/load.c index 8942dd9..d60a93e 100644 --- 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, "rb"); if(!fp) { error_set(error, NULL, "unable to open %s: %s", -- 2.1.4