Usermode/libc - Fixed printf() sending \0
authorJohn Hodge (sonata) <[email protected]>
Sun, 20 Jan 2013 09:21:44 +0000 (17:21 +0800)
committerJohn Hodge (sonata) <[email protected]>
Sun, 20 Jan 2013 09:21:44 +0000 (17:21 +0800)
Usermode/Libraries/libc.so_src/stdio.c

index e25a6b6..39d37a4 100644 (file)
@@ -715,7 +715,7 @@ EXPORT int printf(const char *format, ...)
        va_end(args);\r
        \r
        // Send to stdout\r
-       _SysWrite(_stdout, buf, size+1);\r
+       _SysWrite(_stdout, buf, size);\r
        \r
        // Free buffer\r
        free(buf);\r

UCC git Repository :: git.ucc.asn.au