summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/player/keyboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/player/keyboard.c b/apps/player/keyboard.c
index 70084f8612..a44bdd46d7 100644
--- a/apps/player/keyboard.c
+++ b/apps/player/keyboard.c
@@ -203,7 +203,7 @@ int kbd_input(char* text, int buflen)
203 case BUTTON_ON: 203 case BUTTON_ON:
204 if (len < buflen) { 204 if (len < buflen) {
205 /* ON insert the char */ 205 /* ON insert the char */
206 for (i=len; i>cursor_pos; i--) { 206 for (i=len+1; i>cursor_pos; i--) {
207 text[i]=text[i-1]; 207 text[i]=text[i-1];
208 } 208 }
209 text[cursor_pos]=line[x]; 209 text[cursor_pos]=line[x];