summaryrefslogtreecommitdiffstats
path: root/apps/player
diff options
context:
space:
mode:
authorKjell Ericson <kjell@haxx.se>2003-06-02 12:07:11 +0000
committerKjell Ericson <kjell@haxx.se>2003-06-02 12:07:11 +0000
commit72d674368c9ef1e9ba3e903335c37074bb85a072 (patch)
tree5f590a8c024193dbe8aa4701f5f35e1baad495fe /apps/player
parent9bf3e0814b73fb1fa6e35b9d69b57119283410b4 (diff)
downloadrockbox-72d674368c9ef1e9ba3e903335c37074bb85a072.tar.gz
rockbox-72d674368c9ef1e9ba3e903335c37074bb85a072.tar.bz2
rockbox-72d674368c9ef1e9ba3e903335c37074bb85a072.zip
We missed the null byte at the end of the string.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3718 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/player')
-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)
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];