diff options
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 e87ede8..2bee6f7 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"); |