From 72d674368c9ef1e9ba3e903335c37074bb85a072 Mon Sep 17 00:00:00 2001 From: Kjell Ericson Date: Mon, 2 Jun 2003 12:07:11 +0000 Subject: 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 --- apps/player/keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/player/keyboard.c') 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]; -- cgit v1.2.3