diff options
author | Antoine Cellerier <dionoea@videolan.org> | 2006-07-23 18:54:00 +0000 |
---|---|---|
committer | Antoine Cellerier <dionoea@videolan.org> | 2006-07-23 18:54:00 +0000 |
commit | 4735e8ed538e96fa559f6c0c6ba2ee9cd9932b2c (patch) | |
tree | c18543de850b23f9b271dcbb03183a4c7a8ad85d /apps/recorder/keyboard.c | |
parent | af5393c7a62c652943efa3cea385e63aa130dd3f (diff) | |
download | rockbox-4735e8ed538e96fa559f6c0c6ba2ee9cd9932b2c.tar.gz rockbox-4735e8ed538e96fa559f6c0c6ba2ee9cd9932b2c.zip |
Lets keep the '\n' in (see revision 1.53's commit message)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10299 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/keyboard.c')
-rw-r--r-- | apps/recorder/keyboard.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c index e31c9201a3..f335028bef 100644 --- a/apps/recorder/keyboard.c +++ b/apps/recorder/keyboard.c | |||
@@ -222,7 +222,7 @@ int load_kbd(unsigned char* filename) | |||
222 | { | 222 | { |
223 | int fd, count, l; | 223 | int fd, count, l; |
224 | int i = 0; | 224 | int i = 0; |
225 | unsigned char buf[4]; | 225 | unsigned char buf[4]; |
226 | 226 | ||
227 | if (filename == NULL) { | 227 | if (filename == NULL) { |
228 | kbd_loaded = false; | 228 | kbd_loaded = false; |
@@ -253,12 +253,12 @@ int load_kbd(unsigned char* filename) | |||
253 | kbd_loaded = false; | 253 | kbd_loaded = false; |
254 | return 1; | 254 | return 1; |
255 | } | 255 | } |
256 | 256 | ||
257 | FOR_NB_SCREENS(l) | 257 | FOR_NB_SCREENS(l) |
258 | utf8decode(buf, ¶m[l].kbd_buf[i]); | 258 | utf8decode(buf, ¶m[l].kbd_buf[i]); |
259 | 259 | ||
260 | if (param[0].kbd_buf[i] != 0xFEFF && param[0].kbd_buf[i] != '\n' && | 260 | if (param[0].kbd_buf[i] != 0xFEFF && |
261 | param[0].kbd_buf[i] != '\r') /*skip BOM & newlines */ | 261 | param[0].kbd_buf[i] != '\r') /*skip BOM & carriage returns */ |
262 | i++; | 262 | i++; |
263 | } | 263 | } |
264 | 264 | ||