diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2003-03-17 23:16:20 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2003-03-17 23:16:20 +0000 |
commit | 55fc6df87491f20e0776b167cf58e84d49e00efd (patch) | |
tree | 37a2e6e34f1d4667a762b2dcd02061d462efd370 /apps/recorder | |
parent | 3c6bb5c04051bc5d110b703142c05d3be7f0132f (diff) | |
download | rockbox-55fc6df87491f20e0776b167cf58e84d49e00efd.tar.gz rockbox-55fc6df87491f20e0776b167cf58e84d49e00efd.zip |
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
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/keyboard.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) | |||
158 | } | 158 | } |
159 | } | 159 | } |
160 | 160 | ||
161 | /* Zero terminate the string */ | ||
162 | outline[max_chars - 2] = '\0'; | ||
163 | |||
161 | lcd_putsxy(font_w,main_y,outline); | 164 | lcd_putsxy(font_w,main_y,outline); |
162 | 165 | ||
163 | /* cursor */ | 166 | /* cursor */ |