Correct an inequality sign causing the bounds check in Windows
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 22 Jul 2013 07:12:26 +0000 (07:12 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 22 Jul 2013 07:12:26 +0000 (07:12 +0000)
commit17524941e736ac560d59db21eca1d6c08bb7ed4c
tree4f2fc082c1cbb3828505dba7848dd1a33726119d
parent3d5040f8f85f049cbb072a827a6184b4b4314b08
Correct an inequality sign causing the bounds check in Windows
palette_set() to be bogus. Fortunately, this isn't exploitable through
the terminal emulator, because the palette escape sequence parser
contains its own bounds check before even calling palette_set().

While I'm at it, fix the same goof in the OS X version! That port is
more or less abandoned, but that's no excuse for leaving obviously
wrong code lying around.

git-svn-id: svn://svn.tartarus.org/sgt/putty@9965 cda61777-01e9-0310-a592-d414129be87e
macosx/osxwin.m
windows/window.c