summaryrefslogtreecommitdiff
path: root/src/lib/elua/elua.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elua/elua.c')
-rw-r--r--src/lib/elua/elua.c2
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);