aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa <[email protected]>2003-01-15 06:38:54 +0000
committerKenichi Handa <[email protected]>2003-01-15 06:38:54 +0000
commit6e57ec5e65736760d62ce02adbdc72b69d30587a (patch)
treeb1035d8174f57be6846a11f2c3eed0f92081235e /src
parent6df8b9feeae44dd196dceae139332599c0c1e720 (diff)
(message_dolog): Fix bug of the case that *Message*
buffer is unibyte.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index cdf9d38df5..769d861e36 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -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)