]> git.eshelyaron.com Git - emacs.git/commitdiff
(message_dolog): Cast M to unsigned char * to access bytes.
authorRichard M. Stallman <rms@gnu.org>
Tue, 27 Jan 1998 04:22:43 +0000 (04:22 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 27 Jan 1998 04:22:43 +0000 (04:22 +0000)
src/xdisp.c

index 0c7ce90781f6a8fca22b60dfa6a79570bdaa3d45..399cd0ebae2195a0422c252da293c6e1ff2c4fe7 100644 (file)
@@ -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);
            }
        }