From 66342f02be633d3765f45276768082a5dae3abc2 Mon Sep 17 00:00:00 2001 From: Roland Baer Date: Mon, 6 Aug 2007 10:50:41 +0300 Subject: [PATCH] By one array overflow fix --- XTrap/xtrapdi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/XTrap/xtrapdi.c b/XTrap/xtrapdi.c index 23d3bde..bc1c5d3 100644 --- a/XTrap/xtrapdi.c +++ b/XTrap/xtrapdi.c @@ -486,7 +486,7 @@ int XETrapCreateEnv(ClientPtr client) XETrapEnv *penv = NULL; int status = Success; - if (client->index > MAXCLIENTS) + if (client->index >= MAXCLIENTS) { status = BadImplementation; } -- 1.5.2.3