1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-17 08:31:09 -08:00

(string_escape_byte8): Make multibyte string with correct size.

This commit is contained in:
Kenichi Handa 2002-05-16 11:25:20 +00:00
parent e9e2818f4f
commit 7b40ebaf2a

View 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. */