summaryrefslogtreecommitdiff
path: root/src/composite.c
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2008-09-17 00:39:30 +0000
committerKenichi Handa <handa@m17n.org>2008-09-17 00:39:30 +0000
commit5a8d55045442e21a0e12b09a62f5d672b7ea9aeb (patch)
tree056d65dc1be865d6b3232675ea14dc0096eb741c /src/composite.c
parent1676807bc710c812ae303294ef88501e13453134 (diff)
downloademacs-5a8d55045442e21a0e12b09a62f5d672b7ea9aeb.tar.gz
(Fcomposition_get_gstring): Make bigger gstring_work if necessary.
Diffstat (limited to 'src/composite.c')
-rw-r--r--src/composite.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/composite.c b/src/composite.c
index 97524297988..576e0c8a402 100644
--- a/src/composite.c
+++ b/src/composite.c
@@ -1496,6 +1496,8 @@ must be ignore. */)
gstring = gstring_lookup_cache (header);
if (! NILP (gstring))
return gstring;
+ if (LGSTRING_GLYPH_LEN (gstring_work) < to - from)
+ gstring_work = Fmake_vector (make_number (to - from + 2), Qnil);
LGSTRING_SET_HEADER (gstring_work, header);
LGSTRING_SET_ID (gstring_work, Qnil);
fill_gstring_body (gstring_work);