X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/b8af224e6169e1eec348e8af10b01ac2ebe54347..4fba1c1f510d22a19b075195c8943cd933419f4e:/unix/gtkwin.c 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) {