~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Correct an inequality sign causing the bounds check in Windows
[sgt/putty]
/
windows
/
window.c
diff --git
a/windows/window.c
b/windows/window.c
index
b477d6a
..
f1f7252
100644
(file)
--- 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) {