mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-01 03:18:04 +02:00
XKB: Fix size_syms calculation bug
Apparently it needed to be nSyms*15/10, not *12/10; make it match the other allocation code.
This commit is contained in:
parent
f34b9a20b0
commit
f292de2ef1
1 changed files with 1 additions and 1 deletions
|
|
@ -399,7 +399,7 @@ KeyCode matchingKeys[XkbMaxKeyCount],nMatchingKeys;
|
|||
}
|
||||
if (nResize>0) {
|
||||
int nextMatch;
|
||||
xkb->map->size_syms= (nTotal*12)/10;
|
||||
xkb->map->size_syms= (nTotal*15)/10;
|
||||
newSyms = _XkbTypedCalloc(xkb->map->size_syms,KeySym);
|
||||
if (newSyms==NULL)
|
||||
return BadAlloc;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue