aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/XKBGetMap.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2016-10-06 23:34:06 +0200
committerUlrich Sibiller <uli42@gmx.de>2016-10-19 21:40:27 +0200
commit082e831303bb8c8c63ce40d79bee10855112c014 (patch)
tree4850df15b962685a00f1ec073a787120d8aa5c97 /nx-X11/lib/X11/XKBGetMap.c
parente15023b2ad2a5ca8742cbb93fe10cb38ab079831 (diff)
downloadnx-libs-082e831303bb8c8c63ce40d79bee10855112c014.tar.gz
nx-libs-082e831303bb8c8c63ce40d79bee10855112c014.tar.bz2
nx-libs-082e831303bb8c8c63ce40d79bee10855112c014.zip
Revert "Add a couple fixups for the security patches"
This reverts commit b092864a39bbcd4f34c5c26a7cd0df90e235815d. We will use the proper libX11 upstream patches now.
Diffstat (limited to 'nx-X11/lib/X11/XKBGetMap.c')
-rw-r--r--nx-X11/lib/X11/XKBGetMap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/lib/X11/XKBGetMap.c b/nx-X11/lib/X11/XKBGetMap.c
index 391d7aa89..5eb1d41bf 100644
--- a/nx-X11/lib/X11/XKBGetMap.c
+++ b/nx-X11/lib/X11/XKBGetMap.c
@@ -427,7 +427,7 @@ XkbServerMapPtr srv;
if ( rep->totalVModMapKeys>0 ) {
if (((int) rep->firstVModMapKey + rep->nVModMapKeys)
- > xkb->max_key_code + 1)
+ > xkb->max_key_code)
return BadLength;
if (((xkb->server==NULL)||(xkb->server->vmodmap==NULL))&&
(XkbAllocServerMap(xkb,XkbVirtualModMapMask,0)!=Success)) {