summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorChangwoo Ryu <cwryu@debian.org>2002-10-15 08:48:34 +0000
committerChangwoo Ryu <cwryu@src.gnome.org>2002-10-15 08:48:34 +0000
commit690645ea3f23de839bf83220a2afdcbc272fe914 (patch)
treee2983f543ed316dd0100636e4f19d6314b4f850b /modules
parentd038fdbce6ea8f38b7998b298dc6daf8cf0d9d05 (diff)
downloadpango-690645ea3f23de839bf83220a2afdcbc272fe914.tar.gz
Added missing memcpy() from the static jamo buffer to allocated jamo
2002-10-15 Changwoo Ryu <cwryu@debian.org> * modules/hangul/hangul-xft.c (hangul_engine_shape): * modules/hangul/hangul-x.c (hangul_engine_shape): Added missing memcpy() from the static jamo buffer to allocated jamo buffer (#95569). Thanks to Jungshik Shin.
Diffstat (limited to 'modules')
-rw-r--r--modules/hangul/hangul-fc.c5
-rw-r--r--modules/hangul/hangul-x.c5
-rw-r--r--modules/hangul/hangul-xft.c5
3 files changed, 12 insertions, 3 deletions
diff --git a/modules/hangul/hangul-fc.c b/modules/hangul/hangul-fc.c
index ab934832..9c693a77 100644
--- a/modules/hangul/hangul-fc.c
+++ b/modules/hangul/hangul-fc.c
@@ -170,7 +170,10 @@ hangul_engine_shape (PangoFont *font,
{
max_jamos++;
if (jamos == jamos_static)
- jamos = g_new (gunichar, max_jamos);
+ {
+ jamos = g_new (gunichar, max_jamos);
+ memcpy(jamos, jamos_static, n_jamos*sizeof(gunichar2));
+ }
else
jamos = g_renew (gunichar, jamos, max_jamos);
}
diff --git a/modules/hangul/hangul-x.c b/modules/hangul/hangul-x.c
index fc5806cd..799f3bc1 100644
--- a/modules/hangul/hangul-x.c
+++ b/modules/hangul/hangul-x.c
@@ -759,7 +759,10 @@ hangul_engine_shape (PangoFont *font,
{
max_jamos++;
if (jamos == jamos_static)
- jamos = g_new (gunichar2, max_jamos);
+ {
+ jamos = g_new (gunichar2, max_jamos);
+ memcpy(jamos, jamos_static, n_jamos*sizeof(gunichar2));
+ }
else
jamos = g_renew (gunichar2, jamos, max_jamos);
}
diff --git a/modules/hangul/hangul-xft.c b/modules/hangul/hangul-xft.c
index ab934832..9c693a77 100644
--- a/modules/hangul/hangul-xft.c
+++ b/modules/hangul/hangul-xft.c
@@ -170,7 +170,10 @@ hangul_engine_shape (PangoFont *font,
{
max_jamos++;
if (jamos == jamos_static)
- jamos = g_new (gunichar, max_jamos);
+ {
+ jamos = g_new (gunichar, max_jamos);
+ memcpy(jamos, jamos_static, n_jamos*sizeof(gunichar2));
+ }
else
jamos = g_renew (gunichar, jamos, max_jamos);
}