xkb: don't overrun the map index when accessing symbols.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
497a125339
commit
836864b657
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user