Mercurial > emacs
changeset 20786:49d68bf8f34b
(message_dolog): Cast M to unsigned char * to access bytes.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 27 Jan 1998 04:22:43 +0000 |
parents | 17bcec31f3d4 |
children | 31341a6aaf95 |
files | src/xdisp.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Tue Jan 27 04:17:53 1998 +0000 +++ b/src/xdisp.c Tue Jan 27 04:22:43 1998 +0000 @@ -333,11 +333,12 @@ && ! 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); } }