X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/cb3231590a3c94ab4375e2228bd5e86b0cf1ad7e..f427ee49d309d8fc33ebf3042c3a775f2f530ded:/osfmk/console/serial_general.c diff --git a/osfmk/console/serial_general.c b/osfmk/console/serial_general.c index 7a8cfeb00..62bde9741 100644 --- a/osfmk/console/serial_general.c +++ b/osfmk/console/serial_general.c @@ -156,7 +156,7 @@ console_printbuf_putc(int ch, void * arg) struct console_printbuf_state * info = (struct console_printbuf_state *)arg; info->total += 1; if (info->pos < (SERIAL_CONS_BUF_SIZE - 1)) { - info->str[info->pos] = ch; + info->str[info->pos] = (char)ch; info->pos += 1; } else { /* @@ -168,7 +168,7 @@ console_printbuf_putc(int ch, void * arg) info->str[info->pos] = '\0'; console_write(info->str, info->pos); info->pos = 0; - info->str[info->pos] = ch; + info->str[info->pos] = (char)ch; info->pos += 1; } }