(Fcomposition_get_gstring): Make bigger gstring_work if necessary.

This commit is contained in:
Kenichi Handa 2008-09-17 00:39:30 +00:00
parent 1676807bc7
commit 5a8d550454
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-09-17 Kenichi Handa <handa@m17n.org>
* composite.c (Fcomposition_get_gstring): Make bigger gstring_work
if necessary.
2008-09-16 Kenichi Handa <handa@m17n.org>
* coding.c (make_conversion_work_buffer): Avoid calling

View file

@ -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);