diff options
author | Vincent Torri <vincent dot torri at gmail dot com> | 2015-12-03 09:32:39 +0100 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-12-05 21:04:36 +0100 |
commit | 3b44645363dcdd561edd9610a64f3d2c382753a9 (patch) | |
tree | 64f6c4a580e563e79ca3f1867ae510025052fd64 /src/lib/elua/elua.c | |
parent | d2a7882b732b4cc3a8e7b11ec1c4336bdc2029bb (diff) |
efl: add binary mode to f(re)open() calls
This allows better compatibility with Windows
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to '')
-rw-r--r-- | src/lib/elua/elua.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elua/elua.c b/src/lib/elua/elua.c index 602e5d1825..47bcd3fb76 100644 --- a/src/lib/elua/elua.c +++ b/src/lib/elua/elua.c | |||
@@ -617,7 +617,7 @@ elua_util_script_run(Elua_State *es, int argc, char **argv, int n, int *quit) | |||
617 | if (fname) | 617 | if (fname) |
618 | { | 618 | { |
619 | /* check if there is a file of that name */ | 619 | /* check if there is a file of that name */ |
620 | FILE *f = fopen(fname, "r"); | 620 | FILE *f = fopen(fname, "rb"); |
621 | if (f) | 621 | if (f) |
622 | { | 622 | { |
623 | fclose(f); | 623 | fclose(f); |