summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-03-17 23:16:20 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-03-17 23:16:20 +0000
commit55fc6df87491f20e0776b167cf58e84d49e00efd (patch)
tree37a2e6e34f1d4667a762b2dcd02061d462efd370
parent3c6bb5c04051bc5d110b703142c05d3be7f0132f (diff)
downloadrockbox-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
-rw-r--r--apps/recorder/keyboard.c3
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)
}
}
+ /* Zero terminate the string */
+ outline[max_chars - 2] = '\0';
+
lcd_putsxy(font_w,main_y,outline);
/* cursor */