From b5a7246ba77cee8a924be631cf7af90f3f66ae6b 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 58b8ec24d7..dcc19ba303 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;