From: Kenichi Handa Date: Thu, 16 May 2002 11:25:20 +0000 (+0000) Subject: (string_escape_byte8): Make multibyte string with correct size. X-Git-Tag: emacs-pretest-23.0.90~8295^2~1864^2~866 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7b40ebaf2a662a67b602b03e8f1ad3a6d6bc3e5d;p=emacs.git (string_escape_byte8): Make multibyte string with correct size. --- diff --git a/src/character.c b/src/character.c index c8936a0586a..a3d2d8a41db 100644 --- a/src/character.c +++ b/src/character.c @@ -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. */