summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMichiel Van Der Kolk <not.valid@email.address>2005-04-28 17:07:44 +0000
committerMichiel Van Der Kolk <not.valid@email.address>2005-04-28 17:07:44 +0000
commitd98b6aec01a916635f7eba50818b8d161f19ac38 (patch)
treec146c315dafd9c5d094dcfde2f30fe94c541766a /apps
parenta43f90f56312a0a54196471ea7bee1e783b254cf (diff)
scanf sucks :/
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6377 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 e87ede8b0a..2bee6f74d3 100644
--- a/apps/plugins/searchengine/tokentool.c
+++ b/apps/plugins/searchengine/tokentool.c
@@ -29,6 +29,7 @@ main() {
printf("Output filename? ");
fflush(stdout);
fgets(buf,254,stdin);
+ buf[strlen(buf)-1]=0;
fp=fopen(buf,"w");
if(fp<0) {
printf("Error opening outputfile.\n");