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
|
@ -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…
Reference in New Issue
Block a user