diff options
author | Kjell Ericson <kjell@haxx.se> | 2003-06-02 12:07:11 +0000 |
---|---|---|
committer | Kjell Ericson <kjell@haxx.se> | 2003-06-02 12:07:11 +0000 |
commit | 72d674368c9ef1e9ba3e903335c37074bb85a072 (patch) | |
tree | 5f590a8c024193dbe8aa4701f5f35e1baad495fe /apps/player | |
parent | 9bf3e0814b73fb1fa6e35b9d69b57119283410b4 (diff) | |
download | rockbox-72d674368c9ef1e9ba3e903335c37074bb85a072.tar.gz 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.c | 2 |
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]; |