mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
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:
parent
b5786ded64
commit
55533c4d36
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ RB_WRAP(kbd_input)
|
||||||
char *buffer = luaL_prepbuffer(&b);
|
char *buffer = luaL_prepbuffer(&b);
|
||||||
|
|
||||||
if(input != NULL)
|
if(input != NULL)
|
||||||
luaL_addstring(&b, input);
|
rb->strlcpy(buffer, input, LUAL_BUFFERSIZE);
|
||||||
else
|
else
|
||||||
buffer[0] = '\0';
|
buffer[0] = '\0';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue