summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2003-01-15 06:26:26 +0000
committerKenichi Handa <handa@m17n.org>2003-01-15 06:26:26 +0000
commitf4f1127a6d878037f12089c0b33a779c75709939 (patch)
tree276d0ba21b033d3489d56f1d6de69fdf1c5b8c0f
parentada297e8d5fc8556aa91cec1cf98a866dd65d092 (diff)
downloademacs-f4f1127a6d878037f12089c0b33a779c75709939.tar.gz
(message_dolog): Fix bug of the case that *Message*
buffer is unibyte.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 24ab322ebe9..3b382bf06d4 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-15 Kenichi Handa <handa@m17n.org>
+
+ * xdisp.c (message_dolog): Fix bug of the case that *Message*
+ buffer is unibyte.
+
2003-01-13 Francesco Potort,Al(B <pot@gnu.org>
* fileio.c (Fdelete_directory, Fdelete_file): Document the
diff --git a/src/xdisp.c b/src/xdisp.c
index 70d590c30bf..fff45ae4335 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -5683,7 +5683,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)