summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Bär <roland@verifysoft.de>2008-06-24 14:13:02 -0400
committerAdam Jackson <ajax@redhat.com>2008-06-24 14:13:02 -0400
commit249c892784ca5e8c75863dd82097ca2bedec4723 (patch)
tree694477cd977a5c449f8d7148b8facc223aea5ae1
parent9e5b3deafb97ec1f83e6bfe067bc68df7385bc6a (diff)
Bug #11857: Avoid running off the end of a MAXCLIENTS-sized array.
-rw-r--r--XTrap/xtrapdi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/XTrap/xtrapdi.c b/XTrap/xtrapdi.c
index 52bd57aee..a4ba45b5f 100644
--- a/XTrap/xtrapdi.c
+++ b/XTrap/xtrapdi.c
@@ -487,7 +487,7 @@ int XETrapCreateEnv(ClientPtr client)
XETrapEnv *penv = NULL;
int status = Success;
- if (client->index > MAXCLIENTS)
+ if (client->index >= MAXCLIENTS)
{
status = BadImplementation;
}