summaryrefslogtreecommitdiff
path: root/xserver
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2011-04-01 21:24:38 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2011-04-01 21:24:38 +0000
commit859bb832cea89afc17789bf5e1fb8d3b1dbccbd1 (patch)
tree2d08eabbd1c6578c842cfc3e6687fddf14058b14 /xserver
parent8234ad64056e58a79ee3e0f0083f94a54bf51b87 (diff)
Xext: fix test on extension number for the swapped case.
Diffstat (limited to 'xserver')
-rw-r--r--xserver/Xext/geext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xserver/Xext/geext.c b/xserver/Xext/geext.c
index e61989caa..74ade58ba 100644
--- a/xserver/Xext/geext.c
+++ b/xserver/Xext/geext.c
@@ -188,7 +188,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;