commit 4bc84799218802bade82270fa43466d252769f86 Author: Tanmai Khanna Date: Fri May 15 01:46:15 2020 +0530 eof gives stream error diff --git a/lttoolbox/fst_processor.cc b/lttoolbox/fst_processor.cc index 4c9752a..29374c4 100644 --- a/lttoolbox/fst_processor.cc +++ b/lttoolbox/fst_processor.cc @@ -538,7 +538,10 @@ FSTProcessor::readGeneration(FILE *input, FILE *output) { while((val = fgetwc_unlocked(input)) != L'$') { - //do nothing + if(feof(input)) + { + streamError(); + } } outOfWord = true;