]> git.eshelyaron.com Git - emacs.git/commitdiff
(string_escape_byte8): Make multibyte string with correct size.
authorKenichi Handa <handa@m17n.org>
Thu, 16 May 2002 11:25:20 +0000 (11:25 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 16 May 2002 11:25:20 +0000 (11:25 +0000)
src/character.c

index c8936a0586ae3f7e402a66959a45d5dc8ab0d969..a3d2d8a41db7b94afdf25b337b7201593e2275ea 100644 (file)
@@ -794,7 +794,7 @@ string_escape_byte8 (string)
 
   if (multibyte)
     /* Convert 2-byte sequence of byte8 chars to 4-byte octal.  */
-    val = make_uninit_multibyte_string (nchars + byte8_count * 2,
+    val = make_uninit_multibyte_string (nchars + byte8_count * 3,
                                        nbytes + byte8_count * 2);
   else
     /* Convert 1-byte sequence of byte8 chars to 4-byte octal.  */