summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@freedesktop.org>2009-09-29 23:40:47 -0700
committerJeremy Huddleston <jeremyhu@freedesktop.org>2009-09-30 00:23:47 -0700
commit7bef78e199a4e4f7916be506807513efcd8fd4cb (patch)
tree3726df19be2e40ad15c132a7ee24f33d38c3715a
parent4970666827e65424ee17ccf6341ff84aac974383 (diff)
xkb: Use XkbPerKeyBitArraySize instead of hardcoded value of 32
-rw-r--r--xkb/xkbUtils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xkb/xkbUtils.c b/xkb/xkbUtils.c
index 75e243ca5..a214b75d7 100644
--- a/xkb/xkbUtils.c
+++ b/xkb/xkbUtils.c
@@ -343,13 +343,13 @@ CARD8 * repeat;
repeat= xkb->ctrls->per_key_repeat;
if (pXDev->kbdfeed)
- memcpy(repeat,pXDev->kbdfeed->ctrl.autoRepeats,32);
+ memcpy(repeat,pXDev->kbdfeed->ctrl.autoRepeats,XkbPerKeyBitArraySize);
XkbUpdateDescActions(xkb,first,num,changes);
if ((pXDev->kbdfeed)&&
(changes->ctrls.enabled_ctrls_changes&XkbPerKeyRepeatMask)) {
- memcpy(pXDev->kbdfeed->ctrl.autoRepeats,repeat, 32);
+ memcpy(pXDev->kbdfeed->ctrl.autoRepeats,repeat, XkbPerKeyBitArraySize);
(*pXDev->kbdfeed->CtrlProc)(pXDev, &pXDev->kbdfeed->ctrl);
}
return;