X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/3d5040f8f85f049cbb072a827a6184b4b4314b08..17524941e736ac560d59db21eca1d6c08bb7ed4c:/windows/window.c diff --git a/windows/window.c b/windows/window.c index b477d6ae..f1f72525 100644 --- a/windows/window.c +++ b/windows/window.c @@ -4805,7 +4805,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; real_palette_set(n, r, g, b); if (pal) {