make array large enough
Dana Jansens danakj@orodu.net
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
obt/keyboard.c
→
obt/keyboard.c
@@ -300,7 +300,7 @@ /* go through each keycode and look for the keysym */
for (i = min_keycode; i <= max_keycode; ++i) for (j = 0; j < keysyms_per_keycode; ++j) if (sym == keymap[(i-min_keycode) * keysyms_per_keycode + j]) { - ret = g_renew(KeyCode, ret, ++n); + ret = g_renew(KeyCode, ret, ++n + 1); ret[n-1] = i; ret[n] = 0; }