summaryrefslogtreecommitdiffstats
path: root/contrib/ncurses/ncurses
diff options
context:
space:
mode:
authorluoqi <luoqi@FreeBSD.org>1999-09-03 05:15:33 +0000
committerluoqi <luoqi@FreeBSD.org>1999-09-03 05:15:33 +0000
commitecfed74f232d4f70fd9f1c9821760e358c127d53 (patch)
treef98c8da700c96777a108863c9b902a35e67e11c4 /contrib/ncurses/ncurses
parent60f0adf39e3a57fd8f8b73c75abe3d08a9dc00c3 (diff)
downloadFreeBSD-src-ecfed74f232d4f70fd9f1c9821760e358c127d53.zip
FreeBSD-src-ecfed74f232d4f70fd9f1c9821760e358c127d53.tar.gz
Restore documented tgetstr() behavior.
Diffstat (limited to 'contrib/ncurses/ncurses')
-rw-r--r--contrib/ncurses/ncurses/tinfo/lib_termcap.c6
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]);
}
}
OpenPOWER on IntegriCloud