diff options
Diffstat (limited to 'apps/player')
-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 76f64fbc88..6467ed60f1 100644 --- a/apps/player/keyboard.c +++ b/apps/player/keyboard.c | |||
@@ -140,7 +140,7 @@ int kbd_input(char* text, int buflen) | |||
140 | lcd_puts(1, 0, temptext); | 140 | lcd_puts(1, 0, temptext); |
141 | 141 | ||
142 | /* write out the text */ | 142 | /* write out the text */ |
143 | curpos = MIN(editpos, 9 - MIN(len - editpos, 2)); | 143 | curpos = MIN(MIN(editpos, 10 - MIN(len - editpos, 3)), 9); |
144 | leftpos = editpos - curpos; | 144 | leftpos = editpos - curpos; |
145 | strncpy(temptext, text + leftpos, 10); | 145 | strncpy(temptext, text + leftpos, 10); |
146 | temptext[10] = 0; | 146 | temptext[10] = 0; |