changeset 49254:4f977a0478bc

(message_dolog): Fix bug of the case that *Message* buffer is unibyte.
author Kenichi Handa <handa@m17n.org>
date Wed, 15 Jan 2003 06:38:54 +0000
parents 57b941bb42b4
children 4977d34e1341
files src/xdisp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Wed Jan 15 06:27:32 2003 +0000
+++ b/src/xdisp.c	Wed Jan 15 06:38:54 2003 +0000
@@ -5759,7 +5759,7 @@
 
 	  /* 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)