From 158be3ebd7d1da4d16bfc2dee82aac477fbcb833 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Wed, 21 Mar 2007 02:04:12 +0200 Subject: [PATCH] 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@f292de2ef13dc994a38029cee9e2642576893332) Signed-off-by: Alan Coopersmith Part-of: --- src/xkb/XKBMAlloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xkb/XKBMAlloc.c b/src/xkb/XKBMAlloc.c index 0563a688..96e27ec7 100644 --- a/src/xkb/XKBMAlloc.c +++ b/src/xkb/XKBMAlloc.c @@ -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;