diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2005-11-23 15:32:59 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2005-11-23 15:32:59 +0000 |
commit | 799bb9223ff72ce266c82b91ea18defa10b33086 (patch) | |
tree | f3c156f79f287066b1e1d9c17ef3f204ab159b36 /modules | |
parent | a775a8b1b6ddf7b7ca3e5ba649db7d766f99762f (diff) | |
download | pango-799bb9223ff72ce266c82b91ea18defa10b33086.tar.gz |
Fix incorrect bounds check. (#316469, Steve Grubb) Moreover, increase
2005-11-23 Behdad Esfahbod <behdad@gnome.org>
* modules/hangul/hangul-fc.c (hangul_engine_shape): Fix incorrect
bounds check. (#316469, Steve Grubb) Moreover, increase max_jamos
eight at a time instead of three.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/hangul/hangul-fc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/hangul/hangul-fc.c b/modules/hangul/hangul-fc.c index 26485b8b..9ab0fbc3 100644 --- a/modules/hangul/hangul-fc.c +++ b/modules/hangul/hangul-fc.c @@ -346,9 +346,9 @@ hangul_engine_shape (PangoEngineShape *engine, } } - if (n_jamos == max_jamos) + if (n_jamos >= max_jamos - 3) { - max_jamos += 3; /* at most 3 for each syllable code (L+V+T) */ + max_jamos += 8; /* at most 3 for each syllable code (L+V+T) */ if (jamos == jamos_static) { jamos = g_new (gunichar, max_jamos); |