forked from len0rd/rockbox
The keyboard input didn't terminate the on-screen string
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3472 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3c6bb5c040
commit
55fc6df874
1 changed files with 3 additions and 0 deletions
|
@ -158,6 +158,9 @@ int kbd_input(char* text, int buflen)
|
|||
}
|
||||
}
|
||||
|
||||
/* Zero terminate the string */
|
||||
outline[max_chars - 2] = '\0';
|
||||
|
||||
lcd_putsxy(font_w,main_y,outline);
|
||||
|
||||
/* cursor */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue