From c99880cd615ccfa30956d604f70da447e679d4b8 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Sun, 7 May 2023 15:58:27 -0400 Subject: [PATCH] stdio: increase number buffer size --- lib/stdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stdio.c b/lib/stdio.c index 564396f..0db1185 100644 --- a/lib/stdio.c +++ b/lib/stdio.c @@ -34,7 +34,7 @@ int printf(const char *restrict fmt, ...) va_start(args, fmt); const char *convert = "0123456789ABCDEF"; - char buf[11] = { 0 }; + char buf[16] = { 0 }; while ((c = *fmt++)) { if (c == '%') {