shithub: riscv

Download patch

ref: a55eed44c65a6ebce367fe0d0fb00b5e92565d8f
parent: 7f4b037b0b21df9d96d9b3f53a9779590d5c600b
author: ftrvxmtrx <[email protected]>
date: Sat Jun 13 17:28:33 EDT 2015

aux/vga: == is not strncmp

--- a/sys/src/cmd/aux/vga/mga2164w.c
+++ b/sys/src/cmd/aux/vga/mga2164w.c
@@ -431,7 +431,7 @@
 
 	/* disable vga load (want to do fields in different order) */
 	for(c = vga->link; c; c = c->link)
-		if(c->name == "vga")
+		if(strncmp(c->name, "vga", 3) == 0)
 			c->load = nil;
 
 	ctlr->flag |= Finit;