X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/863c5362e83ad7d153bc39fdbc526f9d0674a0c2..17524941e736ac560d59db21eca1d6c08bb7ed4c:/macosx/osxwin.m 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];