From 4f242fb48a5cf18b6e5ea6598681486abf791771 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Thu, 3 Dec 2015 10:52:56 +0100 Subject: efl: add binary mode to fdopen() calls This allows better compatibility with Windows Signed-off-by: Cedric BAIL --- src/lib/elua/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/elua') diff --git a/src/lib/elua/cache.c b/src/lib/elua/cache.c index 99d7b6a220..d03d9bfb94 100644 --- a/src/lib/elua/cache.c +++ b/src/lib/elua/cache.c @@ -80,7 +80,7 @@ bc_tmp_open(const char *fname, char *buf, size_t buflen) #endif if (fd < 0) return NULL; - return fdopen(fd, "w"); + return fdopen(fd, "wb"); } static void -- cgit v1.2.1