make write cstring as c-string.
This commit is contained in:
parent
f6931eff46
commit
a93d10271d
@ -776,7 +776,7 @@ static int lbytearr_writestr( lua_State *L )
|
|||||||
const char *pstr = lua_tostring(L, 2);
|
const char *pstr = lua_tostring(L, 2);
|
||||||
uint8_t *str = &getBuffer(p)[getPosition(p)];
|
uint8_t *str = &getBuffer(p)[getPosition(p)];
|
||||||
|
|
||||||
size_t l = 1 + lua_objlen(L, 2);
|
size_t l = 1 + strlen(pstr);
|
||||||
|
|
||||||
handle_scope_except();
|
handle_scope_except();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user