From c11ef87931f920ba782ba4e9b47d9c31ad7c1cf7 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Sun, 12 Apr 2009 22:16:14 +1000 Subject: [PATCH] Xi: take XI2 requests into account when checking opcodes. Signed-off-by: Peter Hutterer --- Xi/extinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xi/extinit.c b/Xi/extinit.c index bedd75014..9b1310bb7 100644 --- a/Xi/extinit.c +++ b/Xi/extinit.c @@ -391,7 +391,7 @@ static int ProcIDispatch(ClientPtr client) { REQUEST(xReq); - if (stuff->data > IREQUESTS || !ProcIVector[stuff->data]) + if (stuff->data > (IREQUESTS + XI2REQUESTS) || !ProcIVector[stuff->data]) return BadRequest; return (*ProcIVector[stuff->data])(client);