1
0
Fork 0
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:
Kjell Ericson 2003-06-02 12:07:11 +00:00
parent 9bf3e0814b
commit 72d674368c

View file

@ -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];