X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/3d5040f8f85f049cbb072a827a6184b4b4314b08..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];