summaryrefslogtreecommitdiff
path: root/modules/hangul/hangul-fc.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2011-04-07 13:12:33 -0400
committerBehdad Esfahbod <behdad@behdad.org>2011-04-07 13:12:33 -0400
commit08fd5cf33d875c161dd5280b92d1633469943620 (patch)
treeafb4e3e2490d34404726b5579d0d7886235c4cd3 /modules/hangul/hangul-fc.c
parent6b1910adacb133e229acde532a5a43d588d12faa (diff)
downloadpango-08fd5cf33d875c161dd5280b92d1633469943620.tar.gz
Bug 646213 - Hangul Jamo render as U+00xx boxes and produce valgrind errors
Fix the previous fix!
Diffstat (limited to 'modules/hangul/hangul-fc.c')
-rw-r--r--modules/hangul/hangul-fc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/hangul/hangul-fc.c b/modules/hangul/hangul-fc.c
index b9ffa9ba..2ef56ec9 100644
--- a/modules/hangul/hangul-fc.c
+++ b/modules/hangul/hangul-fc.c
@@ -338,8 +338,9 @@ render_syllable (PangoFont *font, const char *str, int length,
oldlen = *n_glyphs;
for (j = 0; j < 3 && (__jamo_to_ksc5601[jindex][j] != 0); j++)
{
- wc = __jamo_to_ksc5601[jindex][j] - KSC_JAMOBASE + UNI_JAMOBASE;
- index = (wc >= 0x3131) ? find_char (font, wc) : 0;
+ gunichar comp_wc;
+ comp_wc = __jamo_to_ksc5601[jindex][j] - KSC_JAMOBASE + UNI_JAMOBASE;
+ index = (comp_wc >= 0x3131) ? find_char (font, comp_wc) : 0;
pango_glyph_string_set_size (glyphs, *n_glyphs + 1);
if (!index)
{