From: Richard M. Stallman Date: Tue, 27 Jan 1998 04:22:43 +0000 (+0000) Subject: (message_dolog): Cast M to unsigned char * to access bytes. X-Git-Tag: emacs-20.3~2288 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bd4f53cc18ccffb2b171fa35ae62752812f9fb42;p=emacs.git (message_dolog): Cast M to unsigned char * to access bytes. --- 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) && ! NILP (current_buffer->enable_multibyte_characters)) { int i = 0; + unsigned char *msg = (unsigned char *) m; /* Convert a single-byte string to multibyte for the *Message* buffer. */ while (i < len) { - int c = unibyte_char_to_multibyte (m[i++]); + int c = unibyte_char_to_multibyte (msg[i++]); insert_char (c); } }