svn commit: r270388 - head/sys/dev/vt/hw/vga
Jean-Sebastien Pedron
dumbbell at FreeBSD.org
Sat Aug 23 07:02:57 UTC 2014
Author: dumbbell
Date: Sat Aug 23 07:02:57 2014
New Revision: 270388
URL: http://svnweb.freebsd.org/changeset/base/270388
Log:
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
Modified:
head/sys/dev/vt/hw/vga/vt_vga.c
Modified: head/sys/dev/vt/hw/vga/vt_vga.c
==============================================================================
--- head/sys/dev/vt/hw/vga/vt_vga.c Sat Aug 23 05:24:31 2014 (r270387)
+++ head/sys/dev/vt/hw/vga/vt_vga.c Sat Aug 23 07:02:57 2014 (r270388)
@@ -799,7 +799,7 @@ vga_bitblt_text_txtmode(struct vt_device
* 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;
More information about the svn-src-all
mailing list