diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2019-06-21 11:22:28 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2019-06-22 11:30:54 +0200 |
commit | 5be6d271ba4f4c48d0441cf0ed3d8909a6ffd774 (patch) | |
tree | 45083a0e1db6743298ac2929d48eea521b08226a /nx-X11/programs/Xserver | |
parent | 31c3d27ea3d2546beb267ed3cc083e040908e246 (diff) | |
download | nx-libs-5be6d271ba4f4c48d0441cf0ed3d8909a6ffd774.tar.gz nx-libs-5be6d271ba4f4c48d0441cf0ed3d8909a6ffd774.tar.bz2 nx-libs-5be6d271ba4f4c48d0441cf0ed3d8909a6ffd774.zip |
xkb: fix what looks to be a copy-paste error with first vs firstMM
commit 758393951233d1b2520cf4cefd33ec4288a3880a
Author: Dave Airlie <airlied@redhat.com>
Date: Wed Sep 12 11:09:40 2018 +1000
xkb: fix what looks to be a copy-paste error with first vs firstMM
Pointed out by coverity.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r-- | nx-X11/programs/Xserver/xkb/xkb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/xkb/xkb.c b/nx-X11/programs/Xserver/xkb/xkb.c index e6521c952..238b0897e 100644 --- a/nx-X11/programs/Xserver/xkb/xkb.c +++ b/nx-X11/programs/Xserver/xkb/xkb.c @@ -2363,7 +2363,7 @@ ProcXkbSetMap(ClientPtr client) else first= last= 0; if (change.map.num_modmap_keys>0) { firstMM= change.map.first_modmap_key; - lastMM= first+change.map.num_modmap_keys-1; + lastMM= firstMM + change.map.num_modmap_keys - 1; } else firstMM= lastMM= 0; if ((last>0) && (lastMM>0)) { |