mirror of
https://github.com/lua/lua
synced 2026-09-27 00:28:25 +03:00
Wrong cast in 'str_unpack'
This commit is contained in:
parent
9f791535cd
commit
f83de8e34e
1 changed files with 1 additions and 1 deletions
|
|
@ -1738,7 +1738,7 @@ static int str_unpack (lua_State *L) {
|
|||
break;
|
||||
}
|
||||
case Kzstr: {
|
||||
size_t len = (int)strlen(data + pos);
|
||||
size_t len = strlen(data + pos);
|
||||
luaL_argcheck(L, pos + len < ld, 2,
|
||||
"unfinished string for format 'z'");
|
||||
lua_pushlstring(L, data + pos, len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue