]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fcomposition_get_gstring): Make bigger gstring_work if necessary.
authorKenichi Handa <handa@m17n.org>
Wed, 17 Sep 2008 00:39:30 +0000 (00:39 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 17 Sep 2008 00:39:30 +0000 (00:39 +0000)
src/ChangeLog
src/composite.c

index e19d60dbbb0395028f08b88e931fcafd0df2954b..6dc57c60af7f14ec300b2532159f6d3d0c1d10b1 100644 (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
index 97524297988c4f0d7132ae9eba9c8dd54f7e21f6..576e0c8a402d35d0832f5778b081326d060e983f 100644 (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);