diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-03-13 12:43:17 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-03-20 14:48:57 +1000 |
commit | 836864b65794dc0954a01245e418e714cead8125 (patch) | |
tree | 3ec097387781bdb2cad74cad6379742844349d1e /xkb/xkbUtils.c | |
parent | 497a12533905b98f388775b6ba49adf21017cc75 (diff) |
xkb: don't overrun the map index when accessing symbols.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xkb/xkbUtils.c')
-rw-r--r-- | xkb/xkbUtils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xkb/xkbUtils.c b/xkb/xkbUtils.c index 9a1edc901..5ae426dbb 100644 --- a/xkb/xkbUtils.c +++ b/xkb/xkbUtils.c @@ -232,7 +232,7 @@ XkbMapChangesPtr mc; mc= (changes?(&changes->map):NULL); - syms= &pCore->map[(first-xkb->min_key_code)*pCore->mapWidth]; + syms= &pCore->map[(first - pCore->minKeyCode) * pCore->mapWidth]; for (key=first; key<(first+num); key++,syms+= pCore->mapWidth) { explicit= xkb->server->explicit[key]&XkbExplicitKeyTypesMask; types[XkbGroup1Index]= XkbKeyKeyTypeIndex(xkb,key,XkbGroup1Index); |