diff options
author | ru <ru@FreeBSD.org> | 2002-08-12 19:13:22 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-08-12 19:13:22 +0000 |
commit | 705964161caf5a6208d7516f8515aa1357b9628b (patch) | |
tree | b38628ce1786f1b61fdade56949e965f4c35d2d0 /lib/ncurses | |
parent | 39fe3312e6b2bb7959a26b4fbafeedb77c088990 (diff) | |
download | FreeBSD-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.c | 1 |
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) |