Mercurial > mplayer.hg
changeset 24515:c5c0cb0e90d2
getch2: Fix incorrect test
Keycode length wasn't checked in one case because of missing
parentheses. This was accidentally broken in my previous commit to the
file. Most likely the error had no practical effect; the length checks
are unreliable in any case as they can be satisfied by unrelated
data corresponding to other keypresses.
author | uau |
---|---|
date | Sat, 15 Sep 2007 18:13:56 +0000 |
parents | c71d1dd53a99 |
children | 610500ad2e6c |
files | osdep/getch2.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/osdep/getch2.c Sat Sep 15 17:53:15 2007 +0000 +++ b/osdep/getch2.c Sat Sep 15 18:13:56 2007 +0000 @@ -200,7 +200,7 @@ goto found; } } - if (c == '[' || c == 'O' && getch2_len >= 3) { + if ((c == '[' || c == 'O') && getch2_len >= 3) { int c = getch2_buf[2]; const short ctable[] = { KEY_UP, KEY_DOWN, KEY_RIGHT, KEY_LEFT, 0,