summaryrefslogtreecommitdiffstats
path: root/lib/ncurses
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-08-12 19:13:22 +0000
committerru <ru@FreeBSD.org>2002-08-12 19:13:22 +0000
commit705964161caf5a6208d7516f8515aa1357b9628b (patch)
treeb38628ce1786f1b61fdade56949e965f4c35d2d0 /lib/ncurses
parent39fe3312e6b2bb7959a26b4fbafeedb77c088990 (diff)
downloadFreeBSD-src-705964161caf5a6208d7516f8515aa1357b9628b.zip
FreeBSD-src-705964161caf5a6208d7516f8515aa1357b9628b.tar.gz
Handle the escaped colon \: in a capability.
PR: bin/30778 Reviewed by: ache, peter MFC after: 3 days
Diffstat (limited to 'lib/ncurses')
-rw-r--r--lib/ncurses/ncurses/termcap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ncurses/ncurses/termcap.c b/lib/ncurses/ncurses/termcap.c
index 0d98d7e..24e71d3 100644
--- a/lib/ncurses/ncurses/termcap.c
+++ b/lib/ncurses/ncurses/termcap.c
@@ -200,6 +200,7 @@ _nc_read_termcap_entry(const char *const name, TERMTYPE *const tp)
tcs = pd - 1;
for (;;) {
while ((tok = strsep(&ps, ":")) != NULL &&
+ *(tok - 2) != '\\' &&
(*tok == '\0' || *tok == '\\' || !isgraph(*tok)))
;
if (tok == NULL)
OpenPOWER on IntegriCloud