]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/blobdiff - windows/window.c
Correct an inequality sign causing the bounds check in Windows
[PuTTY_svn.git] / windows / window.c
index b477d6ae81fda4af6044bef6f6c798d0bdf1a9e3..f1f72525a305a0b6ed34d95f31e26db9df236482 100644 (file)
@@ -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) {