aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2015-05-22 18:26:18 +0200
committerest31 <MTest31@outlook.com>2015-05-22 20:37:59 +0200
commit39869aaa25ca577faa0da2b6cb83db6db7234342 (patch)
treeb438972c521ce39613b55724879d12a76c270201 /src/script/cpp_api
parente13d2bafc6d0a4fb0d42cf9c229012f4a4f17131 (diff)
downloadminetest-39869aaa25ca577faa0da2b6cb83db6db7234342.tar.gz
minetest-39869aaa25ca577faa0da2b6cb83db6db7234342.tar.bz2
minetest-39869aaa25ca577faa0da2b6cb83db6db7234342.zip
Fix Windows build, clean up included headers
Also fix a startup error caused by s_security.cpp
Diffstat (limited to 'src/script/cpp_api')
-rw-r--r--src/script/cpp_api/s_security.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/cpp_api/s_security.cpp b/src/script/cpp_api/s_security.cpp
index abe5b3e97..c46483e95 100644
--- a/src/script/cpp_api/s_security.cpp
+++ b/src/script/cpp_api/s_security.cpp
@@ -264,7 +264,7 @@ bool ScriptApiSecurity::safeLoadFile(lua_State *L, const char *path)
fp = stdin;
chunk_name = const_cast<char *>("=stdin");
} else {
- fp = fopen(path, "r");
+ fp = fopen(path, "rb");
if (!fp) {
lua_pushfstring(L, "%s: %s", path, strerror(errno));
return false;