summaryrefslogtreecommitdiff
path: root/xserver
diff options
context:
space:
mode:
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;