aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lvm.c b/lvm.c
index e4c026fd..78e39b71 100644
--- a/lvm.c
+++ b/lvm.c
@@ -655,7 +655,7 @@ void luaV_concat (lua_State *L, int total) {
655 /* collect total length and number of strings */ 655 /* collect total length and number of strings */
656 for (n = 1; n < total && tostring(L, s2v(top - n - 1)); n++) { 656 for (n = 1; n < total && tostring(L, s2v(top - n - 1)); n++) {
657 size_t l = tsslen(tsvalue(s2v(top - n - 1))); 657 size_t l = tsslen(tsvalue(s2v(top - n - 1)));
658 if (l_unlikely(l >= (MAX_SIZE/sizeof(char)) - tl)) { 658 if (l_unlikely(l >= MAX_SIZE - sizeof(TString) - tl)) {
659 L->top.p = top - total; /* pop strings to avoid wasting stack */ 659 L->top.p = top - total; /* pop strings to avoid wasting stack */
660 luaG_runerror(L, "string length overflow"); 660 luaG_runerror(L, "string length overflow");
661 } 661 }