diff options
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/player/keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/player/keyboard.c b/apps/player/keyboard.c index 70084f8..a44bdd4 100644 --- a/apps/player/keyboard.c +++ b/apps/player/keyboard.c @@ -203,7 +203,7 @@ int kbd_input(char* text, int buflen) case BUTTON_ON: if (len < buflen) { /* ON insert the char */ - for (i=len; i>cursor_pos; i--) { + for (i=len+1; i>cursor_pos; i--) { text[i]=text[i-1]; } text[cursor_pos]=line[x]; |