diff options
author | luoqi <luoqi@FreeBSD.org> | 1999-09-03 05:15:33 +0000 |
---|---|---|
committer | luoqi <luoqi@FreeBSD.org> | 1999-09-03 05:15:33 +0000 |
commit | ecfed74f232d4f70fd9f1c9821760e358c127d53 (patch) | |
tree | f98c8da700c96777a108863c9b902a35e67e11c4 | |
parent | 60f0adf39e3a57fd8f8b73c75abe3d08a9dc00c3 (diff) | |
download | FreeBSD-src-ecfed74f232d4f70fd9f1c9821760e358c127d53.zip FreeBSD-src-ecfed74f232d4f70fd9f1c9821760e358c127d53.tar.gz |
Restore documented tgetstr() behavior.
-rw-r--r-- | contrib/ncurses/ncurses/tinfo/lib_termcap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/ncurses/ncurses/tinfo/lib_termcap.c b/contrib/ncurses/ncurses/tinfo/lib_termcap.c index 04d1b12..36c3cec 100644 --- a/contrib/ncurses/ncurses/tinfo/lib_termcap.c +++ b/contrib/ncurses/ncurses/tinfo/lib_termcap.c @@ -188,6 +188,12 @@ int i; if (!strncmp(id, capname, 2)) { T(("found match : %s", _nc_visbuf(tp->Strings[i]))); /* setupterm forces cancelled strings to null */ +#ifdef FREEBSD_NATIVE + if (*area && tp->Strings[i]) { + strcpy(*area, tp->Strings[i]); + *area += strlen(tp->Strings[i]) + 1; + } +#endif returnPtr(tp->Strings[i]); } } |