aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.c
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2026-04-07 13:42:34 -0300
committerRoberto I <roberto@inf.puc-rio.br>2026-04-07 13:42:34 -0300
commit29cf284089d543408d726440a3f1acaecdf73636 (patch)
treee18363e7d53bb64d6f82943556ff0c3110778837 /lauxlib.c
parentc037162a1a657088d722f550e287015525bb2259 (diff)
downloadlua-29cf284089d543408d726440a3f1acaecdf73636.tar.gz
lua-29cf284089d543408d726440a3f1acaecdf73636.tar.bz2
lua-29cf284089d543408d726440a3f1acaecdf73636.zip
Avoid macros luaL_loadbuffer and luaL_loadfile
Use luaL_loadbufferx and luaL_loadfilex instead, being explicit about whether to accept binary chunks.
Diffstat (limited to 'lauxlib.c')
-rw-r--r--lauxlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lauxlib.c b/lauxlib.c
index 7cf90cb7..af44418a 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -874,7 +874,7 @@ LUALIB_API int luaL_loadbufferx (lua_State *L, const char *buff, size_t size,
874 874
875 875
876LUALIB_API int luaL_loadstring (lua_State *L, const char *s) { 876LUALIB_API int luaL_loadstring (lua_State *L, const char *s) {
877 return luaL_loadbuffer(L, s, strlen(s), s); 877 return luaL_loadbufferx(L, s, strlen(s), s, "t");
878} 878}
879 879
880/* }====================================================== */ 880/* }====================================================== */