wm: teppich

Download patch

ref: 4ac86cf6bcb29e89ec0e1c658a5699642986993c
parent: 8404bf30a3e77290ab24b0e1b0d928bf19d1b322
author: mkf <mkf@cloud9p.org>
date: Fri Nov 24 03:54:35 EST 2023

libc/printf: pass value to putc, not pointer (thanks mh!)

--- a/libc/printf.c
+++ b/libc/printf.c
@@ -1,5 +1,6 @@
 #include <u.h>
 #include <libc.h>
+//#include <vga.h>
 
 int
 print_char(int c)
@@ -76,8 +77,8 @@
 	{
 		if (*format == '%') 
 			count += print_format(*(++format), ap);
-		else 
-			count += vga_putc(format);
+		else
+			count += vga_putc(*format);
 		format++;
 	}