# HG changeset patch # User Kenichi Handa # Date 1042612734 0 # Node ID 4f977a0478bc42cfcdc5dde8d56b1347efe07ab8 # Parent 57b941bb42b439535165d29319be5e3d45d4e3c8 (message_dolog): Fix bug of the case that *Message* buffer is unibyte. diff -r 57b941bb42b4 -r 4f977a0478bc src/xdisp.c --- a/src/xdisp.c Wed Jan 15 06:27:32 2003 +0000 +++ b/src/xdisp.c Wed Jan 15 06:38:54 2003 +0000 @@ -5759,7 +5759,7 @@ /* Convert a multibyte string to single-byte for the *Message* buffer. */ - for (i = 0; i < nbytes; i += nbytes) + for (i = 0; i < nbytes; i += char_bytes) { c = string_char_and_length (m + i, nbytes - i, &char_bytes); work[0] = (SINGLE_BYTE_CHAR_P (c)