From: Kenichi Handa Date: Wed, 15 Jan 2003 06:38:54 +0000 (+0000) Subject: (message_dolog): Fix bug of the case that *Message* X-Git-Tag: ttn-vms-21-2-B4~11645 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6e57ec5e65736760d62ce02adbdc72b69d30587a;p=emacs.git (message_dolog): Fix bug of the case that *Message* buffer is unibyte. --- 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)