X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=macosx%2Fosxwin.m;h=b58742d9f65f804cbd69172ab9f4eee19a490b1d;hb=0cc6fb8bfea07360afeac83ba67aceffb56499c8;hp=169ae648453b2fe55556ade850307390d4bc3015;hpb=bc6e0952ef1c27c577318ee3c0883c7823c7005b;p=PuTTY.git diff --git a/macosx/osxwin.m b/macosx/osxwin.m index 169ae648..b58742d9 100644 --- a/macosx/osxwin.m +++ b/macosx/osxwin.m @@ -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];