mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-14 11:08:08 +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. (cherry picked from xorg/xserver@f292de2ef1) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/lib/libx11/-/merge_requests/279>
This commit is contained in:
parent
d6e1ca046a
commit
158be3ebd7
1 changed files with 1 additions and 1 deletions
|
|
@ -455,7 +455,7 @@ XkbResizeKeyType(XkbDescPtr xkb,
|
|||
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