From c03089040791f74d09b3be90ab1fe6065f3c2a7f Mon Sep 17 00:00:00 2001 From: dumbbell Date: Sat, 23 Aug 2014 07:02:57 +0000 Subject: [PATCH] vt_vga: Give only the character part of term_char_t to vga_get_cp437() This fixes a bug where vga_get_cp437() was called with an invalid argument. The screen was then filled with '?' instead of the actual character. MFC after: 1 week --- sys/dev/vt/hw/vga/vt_vga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/vt/hw/vga/vt_vga.c b/sys/dev/vt/hw/vga/vt_vga.c index 632b4fff2063..2e28f85003b1 100644 --- a/sys/dev/vt/hw/vga/vt_vga.c +++ b/sys/dev/vt/hw/vga/vt_vga.c @@ -799,7 +799,7 @@ vga_bitblt_text_txtmode(struct vt_device *vd, const struct vt_window *vw, * character set used by the VGA hardware by * default. */ - ch = vga_get_cp437(c); + ch = vga_get_cp437(TCHAR_CHARACTER(c)); /* Convert colors to VGA attributes. */ attr = bg << 4 | fg;