diff --git a/libc/stdio.cpp b/libc/stdio.cpp index 669d6c18..c705f3af 100644 --- a/libc/stdio.cpp +++ b/libc/stdio.cpp @@ -225,7 +225,7 @@ int fputs(const char* str, FILE* file) { while (*str) { - if (putc(*str, file) == EOF) + if (fputc(*str, file) == EOF) return EOF; str++; }