diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2008-07-24 15:44:26 +0930 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@redhat.com> | 2008-10-13 12:07:42 +1030 |
commit | 214ea6f5fd6aeaa7303ea4a69f9aedabf219ec4c (patch) | |
tree | 207c869e82f69d9f73b894ec932629158d28edb2 | |
parent | e7ece39afc8e0adc3b6b1e70b337b98376754462 (diff) |
xkb: fix out-by-1 error in _XkbWriteKeyExplicit.
Thanks to Michael Meeks, Novell Bug 369263.
https://bugzilla.novell.com/show_bug.cgi?id=369263
-rw-r--r-- | src/xkb/XKBSetMap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xkb/XKBSetMap.c b/src/xkb/XKBSetMap.c index d9e1125c..d513c49c 100644 --- a/src/xkb/XKBSetMap.c +++ b/src/xkb/XKBSetMap.c @@ -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++) { |