From d7a3fc3df4779c15bb832ec9b2bd4dbce34e55ff Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Sat, 18 Sep 2010 15:41:50 +0000 Subject: [PATCH] Sync OpenBSD patchset 761: Ignore terminal overrides settings without a value. --- tty-term.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tty-term.c b/tty-term.c index 30bcb7fe..15c94aa0 100644 --- a/tty-term.c +++ b/tty-term.c @@ -1,4 +1,4 @@ -/* $Id: tty-term.c,v 1.41 2009-12-18 07:42:30 nicm Exp $ */ +/* $Id: tty-term.c,v 1.42 2010-09-18 15:41:50 tcunha Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott @@ -252,7 +252,8 @@ tty_term_override(struct tty_term *term, const char *overrides) } else if (entstr[strlen(entstr) - 1] == '@') { entstr[strlen(entstr) - 1] = '\0'; removeflag = 1; - } + } else + continue; for (i = 0; i < NTTYCODE; i++) { ent = &tty_term_codes[i];