1
0
Fork 0
forked from len0rd/rockbox

Lua Fix kbd_input

While luaL_addstring() works perfectly fine for the
final buffer once Lual_pushresult() is called
kbd_input doesn't display a previous input properly
since the buffer hasn't been finalized yet

Change-Id: Ic50acaa8b7b17077dec8750dd2b6382624e8a549
This commit is contained in:
William Wilgus 2018-10-25 06:28:23 -04:00
parent b5786ded64
commit 55533c4d36

View file

@ -131,7 +131,7 @@ RB_WRAP(kbd_input)
char *buffer = luaL_prepbuffer(&b);
if(input != NULL)
luaL_addstring(&b, input);
rb->strlcpy(buffer, input, LUAL_BUFFERSIZE);
else
buffer[0] = '\0';