aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lapi.c b/lapi.c
index 2b14c15e..f00bd53f 100644
--- a/lapi.c
+++ b/lapi.c
@@ -551,6 +551,7 @@ LUA_API const char *lua_pushextlstring (lua_State *L,
551 const char *s, size_t len, lua_Alloc falloc, void *ud) { 551 const char *s, size_t len, lua_Alloc falloc, void *ud) {
552 TString *ts; 552 TString *ts;
553 lua_lock(L); 553 lua_lock(L);
554 api_check(L, len <= MAX_SIZE, "string too large");
554 api_check(L, s[len] == '\0', "string not ending with zero"); 555 api_check(L, s[len] == '\0', "string not ending with zero");
555 ts = luaS_newextlstr (L, s, len, falloc, ud); 556 ts = luaS_newextlstr (L, s, len, falloc, ud);
556 setsvalue2s(L, L->top.p, ts); 557 setsvalue2s(L, L->top.p, ts);