suppress null termination when fgets reads EOF with no data