diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-04-01 21:49:44 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2006-04-01 21:49:44 +0000 |
commit | 5c0a2088e229d05c38e5df7daea45af0d7db7daf (patch) | |
tree | 6a5227178dfd19bc16b1c62e42f8a943e7c4b6ea /xkb | |
parent | 1e764feab595b781dab22d6e41c26f118c9d41b5 (diff) |
Bug #6428: Fix off-by-one error when walking off the end of the vmodmap
list.
Diffstat (limited to 'xkb')
-rw-r--r-- | xkb/xkb.c | 2 |
1 files changed, 1 insertions, 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++; } |