mirror of https://github.com/rusefi/lua.git
Wrong cast in 'str_unpack'
This commit is contained in:
parent
9f791535cd
commit
f83de8e34e
|
@ -1738,7 +1738,7 @@ static int str_unpack (lua_State *L) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case Kzstr: {
|
case Kzstr: {
|
||||||
size_t len = (int)strlen(data + pos);
|
size_t len = strlen(data + pos);
|
||||||
luaL_argcheck(L, pos + len < ld, 2,
|
luaL_argcheck(L, pos + len < ld, 2,
|
||||||
"unfinished string for format 'z'");
|
"unfinished string for format 'z'");
|
||||||
lua_pushlstring(L, data + pos, len);
|
lua_pushlstring(L, data + pos, len);
|
||||||
|
|
Loading…
Reference in New Issue