mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-25 06:17:34 +00:00
(message_dolog): Cast M to unsigned char * to access bytes.
This commit is contained in:
parent
e4e1c623dd
commit
bd4f53cc18
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue