diff options
author | Michiel Van Der Kolk <not.valid@email.address> | 2005-04-28 17:07:44 +0000 |
---|---|---|
committer | Michiel Van Der Kolk <not.valid@email.address> | 2005-04-28 17:07:44 +0000 |
commit | d98b6aec01a916635f7eba50818b8d161f19ac38 (patch) | |
tree | c146c315dafd9c5d094dcfde2f30fe94c541766a /apps/plugins | |
parent | a43f90f56312a0a54196471ea7bee1e783b254cf (diff) | |
download | rockbox-d98b6aec01a916635f7eba50818b8d161f19ac38.tar.gz rockbox-d98b6aec01a916635f7eba50818b8d161f19ac38.zip |
scanf sucks :/
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6377 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/searchengine/tokentool.c | 1 |
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() { | |||
29 | printf("Output filename? "); | 29 | printf("Output filename? "); |
30 | fflush(stdout); | 30 | fflush(stdout); |
31 | fgets(buf,254,stdin); | 31 | fgets(buf,254,stdin); |
32 | buf[strlen(buf)-1]=0; | ||
32 | fp=fopen(buf,"w"); | 33 | fp=fopen(buf,"w"); |
33 | if(fp<0) { | 34 | if(fp<0) { |
34 | printf("Error opening outputfile.\n"); | 35 | printf("Error opening outputfile.\n"); |