From 2f19df09b1850d80e60f2d37f0b7f0db22eae6f7 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 2 Oct 2014 08:36:26 +0000 Subject: Copy ACS characters as UTF-8, from Balazs Kezes. --- tty-acs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tty-acs.c') diff --git a/tty-acs.c b/tty-acs.c index 13dbbc72..5d03c3eb 100644 --- a/tty-acs.c +++ b/tty-acs.c @@ -81,7 +81,7 @@ tty_acs_get(struct tty *tty, u_char ch) struct tty_acs_entry *entry; /* If not a UTF-8 terminal, use the ACS set. */ - if (!(tty->flags & TTY_UTF8)) { + if (tty != NULL && !(tty->flags & TTY_UTF8)) { if (tty->term->acs[ch][0] == '\0') return (NULL); return (&tty->term->acs[ch][0]); -- cgit v1.2.3