(message_dolog): Fix bug of the case that *Message*

buffer is unibyte.
This commit is contained in:
Kenichi Handa 2003-01-15 06:38:54 +00:00
parent 6df8b9feea
commit 6e57ec5e65

View file

@ -5759,7 +5759,7 @@ message_dolog (m, nbytes, nlflag, multibyte)
/* 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)