From b10168eb1c57f886c19c9d5fc1364695741f2132 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 18 Aug 2023 16:49:27 +0300 Subject: [PATCH] LibC: make printf buffer only 128 bytes Only reason for it to be big is if you want super large zero padding for your number. This will eventually be handled without the buffer. --- libc/printf_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/printf_impl.cpp b/libc/printf_impl.cpp index 58b8ec24..dcc19ba3 100644 --- a/libc/printf_impl.cpp +++ b/libc/printf_impl.cpp @@ -308,7 +308,7 @@ extern "C" int printf_impl(const char* format, va_list arguments, int (*putc_fun // TODO: Lenght modifier - char conversion[1024]; + char conversion[128]; const char* string = nullptr; int length = -1;