From 481c8406f3ba0bbf00f22a64265e8b76815e393f Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sun, 28 May 2023 16:25:26 +0300 Subject: [PATCH] LibC: fputs uses fputc instead of putc --- libc/stdio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; }