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) char *buffer = luaL_prepbuffer(&b); if(input != NULL) - luaL_addstring(&b, input); + rb->strlcpy(buffer, input, LUAL_BUFFERSIZE); else buffer[0] = '\0';