(message_dolog): Fix bug of the case that *Message*
buffer is unibyte.
This commit is contained in:
parent
6df8b9feea
commit
6e57ec5e65
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue