diff options
| author | Dana Jansens <danakj@orodu.net> | 2010-02-19 17:17:14 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2010-02-19 17:17:14 -0500 |
| commit | 59c831642a9b5c589c4027d79f566d55e78d95ec (patch) | |
| tree | 9cc34314b42abaf60ec823cbc88fd342cf6b7d65 | |
| parent | b7ddaa5728b5449449e3ea14cf84252285bbc794 (diff) | |
make array large enough
| -rw-r--r-- | obt/keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/obt/keyboard.c b/obt/keyboard.c index 30aa7f93..5b80fd8a 100644 --- a/obt/keyboard.c +++ b/obt/keyboard.c @@ -300,7 +300,7 @@ KeyCode* obt_keyboard_keysym_to_keycode(KeySym sym) 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; } |
