aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-03-15 16:33:12 +0000
committerMihai Moldovan <ionic@ionic.de>2017-12-07 07:20:55 +0100
commitd31f107c63a7f6c13c212ade8172bcdb63faee2e (patch)
tree77eaedad57d175f3bc108125e23525a5c087e820 /nx-X11/programs/Xserver
parent43388104df08858c13af7994392581e0ad6a4e4b (diff)
downloadnx-libs-d31f107c63a7f6c13c212ade8172bcdb63faee2e.tar.gz
nx-libs-d31f107c63a7f6c13c212ade8172bcdb63faee2e.tar.bz2
nx-libs-d31f107c63a7f6c13c212ade8172bcdb63faee2e.zip
Coverity # 487: Check version number correctly.
Backported from X.org: commit 152090ce442e94de1ae920208a92931af6493c8c Author: Adam Jackson <ajax@nwnk.net> Date: Wed Mar 15 16:33:12 2006 +0000 Coverity # 487: Check version number correctly. Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de> Fixes ArcticaProject/nx-libs#542
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r--nx-X11/programs/Xserver/xfixes/xfixes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/xfixes/xfixes.c b/nx-X11/programs/Xserver/xfixes/xfixes.c
index add8d1b0e..1403be8c5 100644
--- a/nx-X11/programs/Xserver/xfixes/xfixes.c
+++ b/nx-X11/programs/Xserver/xfixes/xfixes.c
@@ -120,7 +120,7 @@ ProcXFixesDispatch (ClientPtr client)
REQUEST(xXFixesReq);
XFixesClientPtr pXFixesClient = GetXFixesClient (client);
- if (pXFixesClient->major_version > NUM_VERSION_REQUESTS)
+ if (pXFixesClient->major_version >= NUM_VERSION_REQUESTS)
return BadRequest;
if (stuff->xfixesReqType > version_requests[pXFixesClient->major_version])
return BadRequest;