diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-06-16 14:05:25 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-06-16 14:05:25 +0200 |
commit | 5db25d79b8f2aeaed38e890bce5221cc4e35b77d (patch) | |
tree | 8049faf9230727edaf03eef1735bbfb1c5c53152 /src/lstrlib.js | |
parent | bf22374ec8264e62c67261dd67443546ba1ce916 (diff) | |
download | fengari-5db25d79b8f2aeaed38e890bce5221cc4e35b77d.tar.gz fengari-5db25d79b8f2aeaed38e890bce5221cc4e35b77d.tar.bz2 fengari-5db25d79b8f2aeaed38e890bce5221cc4e35b77d.zip |
str_packsize: fixed malformed luaL_argcheck
Diffstat (limited to 'src/lstrlib.js')
-rw-r--r-- | src/lstrlib.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lstrlib.js b/src/lstrlib.js index 7c3fac4..6cd4a80 100644 --- a/src/lstrlib.js +++ b/src/lstrlib.js @@ -699,7 +699,7 @@ const str_packsize = function(L) { let size = details.size; let ntoalign = details.ntoalign; size += ntoalign; /* total space used by option */ - lauxlib.luaL_argcheck(L, totalsize <= MAXSIZE - size - 1, lua.to_luastring("format result too large", true)); + lauxlib.luaL_argcheck(L, totalsize <= MAXSIZE - size, 1, lua.to_luastring("format result too large", true)); totalsize += size; switch (opt) { case KOption.Kstring: /* strings with length count */ |