Fixed type mismatch in fputc

This commit is contained in:
Max Wash
2020-07-08 15:18:16 +01:00
parent 08df7d7a28
commit c7c6849404

View File

@@ -3,7 +3,8 @@
int fputc(int c, FILE *fp) int fputc(int c, FILE *fp)
{ {
__fio_write(fp, &c, 1); char ch = c;
__fio_write(fp, &ch, 1);
if (__fio_error(fp)) { if (__fio_error(fp)) {
return EOF; return EOF;
} }