From e4b897bd9353990918225a34937cd8723b4e1538 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 28 May 2020 23:48:01 +0200 Subject: Fixed clean buffer and added TODO :) --- src/kernel/lib/stdio/vprintf.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/kernel/lib/stdio/vprintf.c b/src/kernel/lib/stdio/vprintf.c index 2351d39..3c4ecac 100644 --- a/src/kernel/lib/stdio/vprintf.c +++ b/src/kernel/lib/stdio/vprintf.c @@ -1,11 +1,14 @@ #include #include +#include #include // TODO: Use global formatting function +// TODO: Fix fixed buffer size void vprintf(const char *fmt, va_list args) { char buf[1024]; + memset(buf, 0, 1024); vsprintf(buf, fmt, args); for (u32 i = 0; i < strlen(buf); i++) -- cgit v1.2.3