From dd4973ac35a0837c7571160904e5c36298dacb48 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++; }