summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/character.c2
1 files changed, 1 insertions, 1 deletions
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. */