Subject: Re: binary kernel
To: Arne H. Juul <arnej@pvv.unit.no>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: port-pmax
Date: 01/15/1996 11:29:42
[[Arne's bt478.c patches for pmaxcfb]]

There are 256 entries in the colour map, from 0 to 255.
shouldn't that 256 be a 255??

Otherwise, if Arne vouches for this and no-one objects, I'll commit it.




--- src/sys/arch/pmax/dev/bt478.c.orig	Mon Dec 11 21:37:26 1995
+++ src/sys/arch/pmax/dev/bt478.c	Mon Jan 15 14:51:47 1996
@@ -266,22 +266,25 @@
 	u_char *cmap;
 	int i;
 
-	if (index > 256 || index < 0 || index + count > 256)
+	if (index < 0 || count < 0 || index + count > 256)
 		return EINVAL;
 

[[more deleted]