# HG changeset patch # User Kenichi Handa # Date 945216319 0 # Node ID 5c3e047bbf23bfbcba85db8b18d043e5c73de227 # Parent 9e9a0735c824439349f359dbe4901c981d420211 (internal_self_insert): Adjusted for the change of CHAR_STRING. diff -r 9e9a0735c824 -r 5c3e047bbf23 src/cmds.c --- a/src/cmds.c Wed Dec 15 00:04:59 1999 +0000 +++ b/src/cmds.c Wed Dec 15 00:05:19 1999 +0000 @@ -344,7 +344,7 @@ /* Length of multi-byte form of C. */ int len; /* Working buffer and pointer for multi-byte form of C. */ - unsigned char workbuf[4], *str; + unsigned char str[MAX_MULTIBYTE_LENGTH]; int chars_to_delete = 0; int spaces_to_insert = 0; @@ -357,7 +357,7 @@ if (!NILP (current_buffer->enable_multibyte_characters)) { c = unibyte_char_to_multibyte (c); - len = CHAR_STRING (c, workbuf, str); + len = CHAR_STRING (c, str); if (len == 1) /* If C has modifier bits, this makes C an appropriate one-byte char. */ @@ -365,10 +365,9 @@ } else { - workbuf[0] = (SINGLE_BYTE_CHAR_P (c) - ? c - : multibyte_char_to_unibyte (c, Qnil)); - str = workbuf; + str[0] = (SINGLE_BYTE_CHAR_P (c) + ? c + : multibyte_char_to_unibyte (c, Qnil)); len = 1; } if (!NILP (overwrite)