]> git.eshelyaron.com Git - emacs.git/commitdiff
(message_dolog): Fix bug of the case that *Message*
authorKenichi Handa <handa@m17n.org>
Wed, 15 Jan 2003 06:38:54 +0000 (06:38 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 15 Jan 2003 06:38:54 +0000 (06:38 +0000)
buffer is unibyte.

src/xdisp.c

index cdf9d38df5a780a5b5831166dbf24a42b0da579d..769d861e36c5ea39cca6c9536208de5ee044b8eb 100644 (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)