mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-07 08:38:04 +02:00
xkb: fix out-by-1 error in _XkbWriteKeyExplicit.
Thanks to Michael Meeks, Novell Bug 369263. https://bugzilla.novell.com/show_bug.cgi?id=369263
This commit is contained in:
parent
e7ece39afc
commit
214ea6f5fd
1 changed files with 1 additions and 1 deletions
|
|
@ -324,7 +324,7 @@ CARD8 * wire;
|
|||
if ((req->present&XkbExplicitComponentsMask)==0)
|
||||
return;
|
||||
first= req->firstKeyExplicit;
|
||||
last= first+req->nKeyExplicit;
|
||||
last= first+req->nKeyExplicit - 1;
|
||||
i= XkbPaddedSize((req->totalKeyExplicit*2));
|
||||
BufAlloc(CARD8 *,wire,i);
|
||||
for (i=first;i<=last;i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue