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");