forked from len0rd/rockbox
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
This commit is contained in:
parent
9bf3e0814b
commit
72d674368c
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue