diff options
Diffstat (limited to 'src/lib/elua')
-rw-r--r-- | src/lib/elua/elua.c | 2 | ||||
-rw-r--r-- | src/lib/elua/io.c | 2 |
2 files changed, 2 insertions, 2 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); |
diff --git a/src/lib/elua/io.c b/src/lib/elua/io.c index d5b8a0c7d1..6835e9936f 100644 --- a/src/lib/elua/io.c +++ b/src/lib/elua/io.c | |||
@@ -10,7 +10,7 @@ get_cmdline_from_argv(const char *fname, const char **argv) | |||
10 | char pbuf[PATH_MAX]; | 10 | char pbuf[PATH_MAX]; |
11 | const char *arg = NULL; | 11 | const char *arg = NULL; |
12 | 12 | ||
13 | FILE *testf = fopen(fname, "r"); | 13 | FILE *testf = fopen(fname, "rb"); |
14 | if (!testf) | 14 | if (!testf) |
15 | return NULL; | 15 | return NULL; |
16 | 16 | ||