diff options
author | Marvin Borner | 2020-01-16 17:15:53 +0100 |
---|---|---|
committer | Marvin Borner | 2020-01-16 17:15:53 +0100 |
commit | cd3ad989210dc8a3f5805dd5d4c4a6bd74e281db (patch) | |
tree | 015fa67057b1ca14a86a8faf4d1cabb0356467b2 /src/userspace/mlibc/stdio | |
parent | 602b98247e9c87e38870e39abf1d8b13aeae5d0f (diff) |
Quite a different approach to userspace paging
Hope this works soon!
Diffstat (limited to 'src/userspace/mlibc/stdio')
-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 |