shithub: scc

Download patch

ref: 2498b06cc6ad53a64940ad714e3feb3fed88f12d
parent: 95b6c63659cb4fa379a56778c32093728dc74c1a
author: Roberto E. Vargas Caballero <[email protected]>
date: Mon Dec 4 19:02:47 EST 2017

[lib/c] Fix printf()

Remenber, printf() prints to stdout not to stdin.

--- a/lib/c/src/printf.c
+++ b/lib/c/src/printf.c
@@ -9,7 +9,7 @@
 	va_list va;
 
 	va_start(va, fmt);
-	cnt = vfprintf(stdin, fmt, va);
+	cnt = vfprintf(stdout, fmt, va);
 	va_end(va);
 	return cnt;
 }