Closed catfact closed 1 year ago
noticed screen.peek in lua was returning strings bigger than requested. turns out weaver was pushing the buffer using lua_pushstring which assumes null-termination; changed this to lua_pushlstring with explicit length.
screen.peek
lua_pushstring
lua_pushlstring
noticed
screen.peek
in lua was returning strings bigger than requested. turns out weaver was pushing the buffer usinglua_pushstring
which assumes null-termination; changed this tolua_pushlstring
with explicit length.