[PATCH 3/4] Xext: fix test on extension number for the swapped case.
Matthieu Herrb
matthieu.herrb at laas.fr
Fri Apr 1 14:05:42 PDT 2011
Signed-off-by: Matthieu Herrb <matthieu.herrb at laas.fr>
---
Xext/geext.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Xext/geext.c b/Xext/geext.c
index b37c1a0..a6fbb09 100644
--- a/Xext/geext.c
+++ b/Xext/geext.c
@@ -185,7 +185,7 @@ SGEGenericEvent(xEvent* from, xEvent* to)
xGenericEvent* gefrom = (xGenericEvent*)from;
xGenericEvent* geto = (xGenericEvent*)to;
- if (gefrom->extension > MAXEXTENSIONS)
+ if ((gefrom->extension & 0x7f) > MAXEXTENSIONS)
{
ErrorF("GE: Invalid extension offset for event.\n");
return;
--
1.7.3.5
More information about the xorg-devel
mailing list