changeset 88526:6bac4ae1c326

(string_escape_byte8): Make multibyte string with correct size.
author Kenichi Handa <handa@m17n.org>
date Thu, 16 May 2002 11:25:20 +0000
parents 3629e02a95c1
children 91480a58ce45
files src/character.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/character.c	Thu May 16 01:17:14 2002 +0000
+++ b/src/character.c	Thu May 16 11:25:20 2002 +0000
@@ -794,7 +794,7 @@
 
   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.  */