aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-01-27 04:22:43 +0000
committerRichard M. Stallman1998-01-27 04:22:43 +0000
commitbd4f53cc18ccffb2b171fa35ae62752812f9fb42 (patch)
tree47535107dcf38b91ea9731b5846b50390c05ce76 /src
parente4e1c623dd6f69e041db4ed99669345ca20682f8 (diff)
downloademacs-bd4f53cc18ccffb2b171fa35ae62752812f9fb42.tar.gz
emacs-bd4f53cc18ccffb2b171fa35ae62752812f9fb42.zip
(message_dolog): Cast M to unsigned char * to access bytes.
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 }