From f4f1127a6d878037f12089c0b33a779c75709939 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Wed, 15 Jan 2003 06:26:26 +0000 Subject: [PATCH] (message_dolog): Fix bug of the case that *Message* buffer is unibyte. --- src/ChangeLog | 5 +++++ src/xdisp.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + + * xdisp.c (message_dolog): Fix bug of the case that *Message* + buffer is unibyte. + 2003-01-13 Francesco Potort,Al(B * 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) -- 2.39.5