summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMichiel Van Der Kolk <not.valid@email.address>2005-04-28 17:41:39 +0000
committerMichiel Van Der Kolk <not.valid@email.address>2005-04-28 17:41:39 +0000
commita40a3152bc87069abdaf4f789e50837a468ce18b (patch)
tree9d1608c8a1164804f32483b1bb2515f5142043a8 /apps
parentd98b6aec01a916635f7eba50818b8d161f19ac38 (diff)
downloadrockbox-a40a3152bc87069abdaf4f789e50837a468ce18b.tar.gz
rockbox-a40a3152bc87069abdaf4f789e50837a468ce18b.zip
Fixed stripping of \n..
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6378 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/searchengine/tokentool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/plugins/searchengine/tokentool.c b/apps/plugins/searchengine/tokentool.c
index 2bee6f74d3..0967192e98 100644
--- a/apps/plugins/searchengine/tokentool.c
+++ b/apps/plugins/searchengine/tokentool.c
@@ -49,6 +49,7 @@ main() {
49 printf("Token spelling? "); 49 printf("Token spelling? ");
50 fflush(stdout); 50 fflush(stdout);
51 fgets(token.spelling,254,stdin); 51 fgets(token.spelling,254,stdin);
52 token.spelling[strlen(token.spelling)-1]=0;
52 } 53 }
53 if(token.kind==TOKEN_STRINGIDENTIFIER) 54 if(token.kind==TOKEN_STRINGIDENTIFIER)
54 printf("TITLE=4 ARTIST=5 ALBUM=6 GENRE=7 FILENAME=8\n"); 55 printf("TITLE=4 ARTIST=5 ALBUM=6 GENRE=7 FILENAME=8\n");