Fix fgets warning