From 8e196d6423cc817bec3b03339378e61a708c6d10 Mon Sep 17 00:00:00 2001 From: Supermjork Date: Mon, 21 Aug 2023 13:20:33 +0300 Subject: [PATCH] oui --- printf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/printf.c b/printf.c index c597790..0cd45b6 100644 --- a/printf.c +++ b/printf.c @@ -13,7 +13,7 @@ int _printf(const char *format, ...) int buff_idx = 0; int fmt_idx = 0; unsigned int identifiers = _contains(format, '%'); - unsigned int BUFF_SIZE = _strlen(format) - (identifiers * 2); + unsigned int BUFF_SIZE = _strlen(format) - identifiers; char *buffer, *next; char c; va_list args;