From 1dea5b6dbdf6f164d71de237be806a78fd1f9ed1 Mon Sep 17 00:00:00 2001 From: LinlyBoi Date: Tue, 22 Aug 2023 22:14:12 +0300 Subject: [PATCH] gimme that --- printf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/printf.c b/printf.c index bba8713..22f3332 100644 --- a/printf.c +++ b/printf.c @@ -21,6 +21,7 @@ int _printf(const char *format, ...) return (0); buff_idx = fmt_idx = printed = 0; /*chain assignment*/ + _memset(buffer, 0); while (*(format + fmt_idx)) { if ((*(format + fmt_idx) == '%') && (*(format + fmt_idx + 1)))