[tor-commits] [tor/master] Handle test case where fgets() sees EOF on the last read