diff options
| author | Roberto I <roberto@inf.puc-rio.br> | 2026-04-07 13:42:34 -0300 |
|---|---|---|
| committer | Roberto I <roberto@inf.puc-rio.br> | 2026-04-07 13:42:34 -0300 |
| commit | 29cf284089d543408d726440a3f1acaecdf73636 (patch) | |
| tree | e18363e7d53bb64d6f82943556ff0c3110778837 /lauxlib.c | |
| parent | c037162a1a657088d722f550e287015525bb2259 (diff) | |
| download | lua-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -874,7 +874,7 @@ LUALIB_API int luaL_loadbufferx (lua_State *L, const char *buff, size_t size, | |||
| 874 | 874 | ||
| 875 | 875 | ||
| 876 | LUALIB_API int luaL_loadstring (lua_State *L, const char *s) { | 876 | LUALIB_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 | /* }====================================================== */ |
