From 55fc6df87491f20e0776b167cf58e84d49e00efd Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 17 Mar 2003 23:16:20 +0000 Subject: 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 --- apps/recorder/keyboard.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps') diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c index a76f2342d2..d8b3f40a45 100644 --- a/apps/recorder/keyboard.c +++ b/apps/recorder/keyboard.c @@ -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 */ -- cgit v1.2.3