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 | |
| parent | 3c6bb5c04051bc5d110b703142c05d3be7f0132f (diff) | |
| download | rockbox-55fc6df87491f20e0776b167cf58e84d49e00efd.zip rockbox-55fc6df87491f20e0776b167cf58e84d49e00efd.tar.gz rockbox-55fc6df87491f20e0776b167cf58e84d49e00efd.tar.bz2 rockbox-55fc6df87491f20e0776b167cf58e84d49e00efd.tar.xz | |
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
| -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 a76f234..d8b3f40 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 */ |