summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/rocklib.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/rocklib.c')
-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