diff options
author | Marvin Borner | 2020-01-16 21:08:43 +0100 |
---|---|---|
committer | GitHub | 2020-01-16 21:08:43 +0100 |
commit | d5d1749257ff8b9aa6b5ace4b4720b484a2860f3 (patch) | |
tree | a2cd4f1c7995e32c1c02b191324fa63f9d30655b /src/userspace/mlibc/stdio/printf.c | |
parent | 602b98247e9c87e38870e39abf1d8b13aeae5d0f (diff) | |
parent | 366119b53d5148922c5df7c7bd088ed71e95499a (diff) |
Merged fancy userspace paging
Diffstat (limited to 'src/userspace/mlibc/stdio/printf.c')
-rw-r--r-- | src/userspace/mlibc/stdio/printf.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/userspace/mlibc/stdio/printf.c b/src/userspace/mlibc/stdio/printf.c index b582897..5617d03 100644 --- a/src/userspace/mlibc/stdio/printf.c +++ b/src/userspace/mlibc/stdio/printf.c @@ -1,14 +1,10 @@ #include <stdarg.h> #include <mlibc/stdio.h> -#include <mlibc/string.h> -#include <mlibc/stdlib.h> void printf(const char *fmt, ...) { - char *format = (char *) malloc(strlen(fmt)); - strcpy(format, fmt); va_list args; va_start(args, fmt); - vprintf(format, args); + vprintf(fmt, args); va_end(args); }
\ No newline at end of file |