diff options
| author | Kenichi Handa | 2002-05-16 11:25:20 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2002-05-16 11:25:20 +0000 |
| commit | 7b40ebaf2a662a67b602b03e8f1ad3a6d6bc3e5d (patch) | |
| tree | 59028d12440549e3aa47175aacd513c197dd2001 /src/character.c | |
| parent | e9e2818f4fb8af97a0d8e2951584fdb7c71747ff (diff) | |
| download | emacs-7b40ebaf2a662a67b602b03e8f1ad3a6d6bc3e5d.tar.gz emacs-7b40ebaf2a662a67b602b03e8f1ad3a6d6bc3e5d.zip | |
(string_escape_byte8): Make multibyte string with correct size.
Diffstat (limited to 'src/character.c')
| -rw-r--r-- | src/character.c | 2 |
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) | |||
| 794 | 794 | ||
| 795 | if (multibyte) | 795 | if (multibyte) |
| 796 | /* Convert 2-byte sequence of byte8 chars to 4-byte octal. */ | 796 | /* Convert 2-byte sequence of byte8 chars to 4-byte octal. */ |
| 797 | val = make_uninit_multibyte_string (nchars + byte8_count * 2, | 797 | val = make_uninit_multibyte_string (nchars + byte8_count * 3, |
| 798 | nbytes + byte8_count * 2); | 798 | nbytes + byte8_count * 2); |
| 799 | else | 799 | else |
| 800 | /* Convert 1-byte sequence of byte8 chars to 4-byte octal. */ | 800 | /* Convert 1-byte sequence of byte8 chars to 4-byte octal. */ |