mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-21 20:26:45 +00:00
Bug #6428: Fix off-by-one error when walking off the end of the vmodmap
list.
This commit is contained in:
parent
1e764feab5
commit
5c0a2088e2
2 changed files with 5 additions and 1 deletions
|
|
@ -1255,7 +1255,7 @@ XkbSizeVirtualModMap(XkbDescPtr xkb,xkbGetMapReply *rep)
|
|||
rep->totalVModMapKeys= 0;
|
||||
return 0;
|
||||
}
|
||||
for (nRtrn=i=0;i<rep->nVModMapKeys;i++) {
|
||||
for (nRtrn=i=0;i<rep->nVModMapKeys-1;i++) {
|
||||
if (xkb->server->vmodmap[i+rep->firstVModMapKey]!=0)
|
||||
nRtrn++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue