source.c: Use fgetc instead of getc.