summaryrefslogtreecommitdiff
path: root/symbols.c
diff options
context:
space:
mode:
Diffstat (limited to 'symbols.c')
-rw-r--r--symbols.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/symbols.c b/symbols.c
index 69cbe32..55dc197 100644
--- a/symbols.c
+++ b/symbols.c
@@ -957,6 +957,9 @@ AddSymbolsToKey(KeyInfo *key, XkbDescPtr xkb, const char *field,
for (int i = key->numLevels[ndx] - 1;
(i >= 0) && (key->syms[ndx][i] == NoSymbol); i--)
{
+ key->syms[ndx] = recallocarray(key->syms[ndx], key->numLevels[ndx],
+ key->numLevels[ndx]-1, sizeof(KeySym));
+ /* XXX resize keys->acts too ? */
key->numLevels[ndx]--;
}
return True;