fgetc() returns an int which should never ever be put in a char.