]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - macosx/osxwin.m
Correct an inequality sign causing the bounds check in Windows
[PuTTY.git] / macosx / osxwin.m
index 169ae648453b2fe55556ade850307390d4bc3015..b58742d9f65f804cbd69172ab9f4eee19a490b1d 100644 (file)
@@ -957,7 +957,7 @@ void palette_set(void *frontend, int n, int r, int g, int b)
 
     if (n >= 16)
        n += 256 - 16;
-    if (n > NALLCOLOURS)
+    if (n >= NALLCOLOURS)
        return;
     [win setColour:n r:r/255.0 g:g/255.0 b:b/255.0];