diff options
| author | William Wilgus <me.theuser@yahoo.com> | 2018-10-25 06:28:23 -0400 |
|---|---|---|
| committer | William Wilgus <me.theuser@yahoo.com> | 2018-10-25 06:30:58 -0400 |
| commit | 55533c4d36748d30a1ab5d49c35abae19077c7fe (patch) | |
| tree | d59b48b2d3dc986a7a0eb0b8f5846af7dd51dcb7 /apps/plugins/lua | |
| parent | b5786ded6482b5b5955b96bf61b410f012a8509a (diff) | |
| download | rockbox-55533c4d36748d30a1ab5d49c35abae19077c7fe.zip rockbox-55533c4d36748d30a1ab5d49c35abae19077c7fe.tar.gz rockbox-55533c4d36748d30a1ab5d49c35abae19077c7fe.tar.bz2 rockbox-55533c4d36748d30a1ab5d49c35abae19077c7fe.tar.xz | |
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
Diffstat (limited to 'apps/plugins/lua')
| -rw-r--r-- | apps/plugins/lua/rocklib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/lua/rocklib.c b/apps/plugins/lua/rocklib.c index 1b928c2..80124d2 100644 --- a/apps/plugins/lua/rocklib.c +++ b/apps/plugins/lua/rocklib.c @@ -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'; |