summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorallanjude <allanjude@FreeBSD.org>2016-01-27 16:45:23 +0000
committerallanjude <allanjude@FreeBSD.org>2016-01-27 16:45:23 +0000
commite7702ce3dffefab878927f99d7bc663b9869846c (patch)
treec424722212cae1abfaefb66373b00ed891f4b9b2
parentfcd747ffb0fe692e5ec1668020a51cd34d3897f9 (diff)
downloadFreeBSD-src-e7702ce3dffefab878927f99d7bc663b9869846c.zip
FreeBSD-src-e7702ce3dffefab878927f99d7bc663b9869846c.tar.gz
ficl on i386 should cast to unsigned char output to support efi i386
make it possible for efi_console to recognize and translate box characters on i386 build (unsigned versus signed char passed as int issue). Submitted by: Toomas Soome <tsoome at me.com> Reviewed by: emaste, smh, dteske MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D4993
-rw-r--r--sys/boot/ficl/i386/sysdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/ficl/i386/sysdep.c b/sys/boot/ficl/i386/sysdep.c
index 39c853b..df0891d 100644
--- a/sys/boot/ficl/i386/sysdep.c
+++ b/sys/boot/ficl/i386/sysdep.c
@@ -58,7 +58,7 @@ void ficlTextOut(FICL_VM *pVM, char *msg, int fNewline)
IGNORE(pVM);
while(*msg != 0)
- putchar(*(msg++));
+ putchar((unsigned char)*(msg++));
if (fNewline)
putchar('\n');
OpenPOWER on IntegriCloud