diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/kernel/lib/stdio/vprintf.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <lib/stdio.h> #include <lib/stdlib.h> +#include <lib/lib.h> #include <stdint.h> // 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++) |