diff options
author | Jihoon Kim <jihoon48.kim@samsung.com> | 2015-01-08 15:32:44 +0900 |
---|---|---|
committer | Choe Hwanjin <choe.hwanjin@gmail.com> | 2015-02-24 00:00:53 +0900 |
commit | 78e9d8926262db423b4cf9181e1c2cb06a120a9b (patch) | |
tree | 53b016f7b89e2bd482568c58c49155948b6c6370 /hangul | |
parent | eeba676cd8781b47c0a52a0e76bc7262ca5e7e75 (diff) | |
download | libhangul-78e9d8926262db423b4cf9181e1c2cb06a120a9b.tar.gz |
Fix incorrect sizeof expressionbaserock/libhangul-0.1.0-19-g78e9d89
sizeof of pointer variable returns 4 bytes.
Change-Id: Iaf4444ceabff8ccc9a1f2f397e13bbf01b5feb04
Diffstat (limited to 'hangul')
-rw-r--r-- | hangul/hangulinputcontext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hangul/hangulinputcontext.c b/hangul/hangulinputcontext.c index 04b85d0..8621065 100644 --- a/hangul/hangulinputcontext.c +++ b/hangul/hangulinputcontext.c @@ -388,7 +388,7 @@ void hangul_keyboard_set_value(HangulKeyboard *keyboard, int key, ucschar value) { if (keyboard != NULL) { - if (key >= 0 && key < N_ELEMENTS(keyboard->table)) { + if (key >= 0 && key < HANGUL_KEYBOARD_TABLE_SIZE) { ucschar* table = (ucschar*)keyboard->table; table[key] = value; } |