Fixed stripping of \n..
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6378 a1c6a512-1295-4272-9138-f99709370657
diff --git a/apps/plugins/searchengine/tokentool.c b/apps/plugins/searchengine/tokentool.c
index 2bee6f7..0967192 100644
--- a/apps/plugins/searchengine/tokentool.c
+++ b/apps/plugins/searchengine/tokentool.c
@@ -49,6 +49,7 @@
printf("Token spelling? ");
fflush(stdout);
fgets(token.spelling,254,stdin);
+ token.spelling[strlen(token.spelling)-1]=0;
}
if(token.kind==TOKEN_STRINGIDENTIFIER)
printf("TITLE=4 ARTIST=5 ALBUM=6 GENRE=7 FILENAME=8\n");