fix warning
don't count eof as truncated