diff options
author | Richard M. Stallman <rms@gnu.org> | 1998-01-27 04:22:43 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1998-01-27 04:22:43 +0000 |
commit | 635530c48e576f3768877ba1673eef95136215fb (patch) | |
tree | e22e4d5bef0171208c9a1eb9d718f9a28470e21b /src/xdisp.c | |
parent | 9a21a864ea304efef384ddf27048a795e68c8b0e (diff) | |
download | emacs-635530c48e576f3768877ba1673eef95136215fb.tar.gz |
(message_dolog): Cast M to unsigned char * to access bytes.
Diffstat (limited to 'src/xdisp.c')
-rw-r--r-- | src/xdisp.c | 3 |
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) && ! 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); } } |