From ddc1c6f0ba0b4f1278a892bfbc8fb5574d573259 Mon Sep 17 00:00:00 2001 From: "John Hodge (sonata)" Date: Sun, 20 Jan 2013 17:21:44 +0800 Subject: [PATCH 1/1] Usermode/libc - Fixed printf() sending \0 --- Usermode/Libraries/libc.so_src/stdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Usermode/Libraries/libc.so_src/stdio.c b/Usermode/Libraries/libc.so_src/stdio.c index e25a6b60..39d37a4b 100644 --- a/Usermode/Libraries/libc.so_src/stdio.c +++ b/Usermode/Libraries/libc.so_src/stdio.c @@ -715,7 +715,7 @@ EXPORT int printf(const char *format, ...) va_end(args); // Send to stdout - _SysWrite(_stdout, buf, size+1); + _SysWrite(_stdout, buf, size); // Free buffer free(buf); -- 2.20.1