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:
Daniel Stone 2007-03-21 02:04:12 +02:00 committed by Daniel Stone
parent f34b9a20b0
commit f292de2ef1

View File

@ -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;