From 6e57ec5e65736760d62ce02adbdc72b69d30587a Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Wed, 15 Jan 2003 06:38:54 +0000 Subject: [PATCH] (message_dolog): Fix bug of the case that *Message* buffer is unibyte. --- src/xdisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index cdf9d38df5a..769d861e36c 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) -- 2.39.2