diff options
author | Julien Cristau <jcristau@debian.org> | 2009-12-22 17:14:09 +0100 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2009-12-24 17:55:11 +0100 |
commit | 7f6fc40bedb31a2c1f6723f0e7b9a7654560d69f (patch) | |
tree | 27d06bbc8e2fcff61938a1c20805b9e2da231c80 | |
parent | 7cdc00cac817843c913ad442261a43646eb4240e (diff) |
test/xi2: fix maximum max_keycode (bug#25492)
The number of keycodes needs to be lower than 0xFFFD so that the length
field of xXIKeyInfo doesn't overflow.
Signed-off-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit b44c9be244cee286835855483a69c69e80b095c0)
-rw-r--r-- | test/xi2/protocol-eventconvert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/xi2/protocol-eventconvert.c b/test/xi2/protocol-eventconvert.c index 65ddec507..66686cb1c 100644 --- a/test/xi2/protocol-eventconvert.c +++ b/test/xi2/protocol-eventconvert.c @@ -834,7 +834,7 @@ static void test_convert_XIDeviceChangedEvent(void) in.keys.max_keycode = 1 << 8; test_XIDeviceChangedEvent(&in); - in.keys.max_keycode = 0xFFFD; /* highest range, above that the length + in.keys.max_keycode = 0xFFFC; /* highest range, above that the length field gives up */ test_XIDeviceChangedEvent(&in); |