X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/f00017098478afe94af08f5473fe5e89f976e5cf..8a9ec85763809cd3e849d3b00750ba74222dee18:/unix/gtkwin.c?ds=sidebyside diff --git a/unix/gtkwin.c b/unix/gtkwin.c index da40e544..f403a807 100644 --- a/unix/gtkwin.c +++ b/unix/gtkwin.c @@ -1597,7 +1597,7 @@ void palette_set(void *frontend, int n, int r, int g, int b) struct gui_data *inst = (struct gui_data *)frontend; if (n >= 16) n += 256 - 16; - if (n > NALLCOLOURS) + if (n >= NALLCOLOURS) return; real_palette_set(inst, n, r, g, b); if (n == 258) {