Fixed type mismatch in fputc
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user