# HG changeset patch # User Richard M. Stallman # Date 885874963 0 # Node ID 49d68bf8f34b87c0247678c84a0b0d46b561ebb8 # Parent 17bcec31f3d420954f6a985d8b29fe30b3b70736 (message_dolog): Cast M to unsigned char * to access bytes. diff -r 17bcec31f3d4 -r 49d68bf8f34b src/xdisp.c --- 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); } }