aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 0c7ce90781f..399cd0ebae2 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -333,11 +333,12 @@ message_dolog (m, len, nlflag, multibyte)
333 && ! NILP (current_buffer->enable_multibyte_characters)) 333 && ! NILP (current_buffer->enable_multibyte_characters))
334 { 334 {
335 int i = 0; 335 int i = 0;
336 unsigned char *msg = (unsigned char *) m;
336 /* Convert a single-byte string to multibyte 337 /* Convert a single-byte string to multibyte
337 for the *Message* buffer. */ 338 for the *Message* buffer. */
338 while (i < len) 339 while (i < len)
339 { 340 {
340 int c = unibyte_char_to_multibyte (m[i++]); 341 int c = unibyte_char_to_multibyte (msg[i++]);
341 insert_char (c); 342 insert_char (c);
342 } 343 }
343 } 344 }