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:
parent
e9e2818f4f
commit
7b40ebaf2a
1 changed files with 1 additions and 1 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue