fixing fputc