fixed fgets return warning