diff options
author | uau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-15 18:13:56 +0000 |
---|---|---|
committer | uau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-15 18:13:56 +0000 |
commit | 21038d9e708e7b6c3d0dd0b266130f5984c3033c (patch) | |
tree | 04fe84db51beb33f98ef9c5e8017628c1f67fa87 /osdep/getch2.c | |
parent | eb4051342ff773b94371a728a58016473de882fb (diff) | |
download | mpv-21038d9e708e7b6c3d0dd0b266130f5984c3033c.tar.bz2 mpv-21038d9e708e7b6c3d0dd0b266130f5984c3033c.tar.xz |
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.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24535 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'osdep/getch2.c')
-rw-r--r-- | osdep/getch2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/getch2.c b/osdep/getch2.c index b5b65370cf..4a571033b1 100644 --- a/osdep/getch2.c +++ b/osdep/getch2.c @@ -200,7 +200,7 @@ void getch2(void) 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, |