diff --git a/photon/libc/stdio/fputc.c b/photon/libc/stdio/fputc.c index bac9bbd..ef4838e 100644 --- a/photon/libc/stdio/fputc.c +++ b/photon/libc/stdio/fputc.c @@ -3,7 +3,8 @@ int fputc(int c, FILE *fp) { - __fio_write(fp, &c, 1); + char ch = c; + __fio_write(fp, &ch, 1); if (__fio_error(fp)) { return EOF; }