summaryrefslogtreecommitdiff
path: root/apps/plugins/lua
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2018-10-25 06:28:23 -0400
committerWilliam Wilgus <me.theuser@yahoo.com>2018-10-25 06:30:58 -0400
commit55533c4d36748d30a1ab5d49c35abae19077c7fe (patch)
treed59b48b2d3dc986a7a0eb0b8f5846af7dd51dcb7 /apps/plugins/lua
parentb5786ded6482b5b5955b96bf61b410f012a8509a (diff)
downloadrockbox-55533c4d36748d30a1ab5d49c35abae19077c7fe.tar.gz
rockbox-55533c4d36748d30a1ab5d49c35abae19077c7fe.zip
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/lua/rocklib.c b/apps/plugins/lua/rocklib.c
index 1b928c229c..80124d2165 100644
--- a/apps/plugins/lua/rocklib.c
+++ b/apps/plugins/lua/rocklib.c
@@ -131,7 +131,7 @@ RB_WRAP(kbd_input)
131 char *buffer = luaL_prepbuffer(&b); 131 char *buffer = luaL_prepbuffer(&b);
132 132
133 if(input != NULL) 133 if(input != NULL)
134 luaL_addstring(&b, input); 134 rb->strlcpy(buffer, input, LUAL_BUFFERSIZE);
135 else 135 else
136 buffer[0] = '\0'; 136 buffer[0] = '\0';
137 137