Restore documented tgetstr() behavior.

This commit is contained in:
luoqi 1999-09-03 05:15:33 +00:00
parent 60f0adf39e
commit ecfed74f23

View File

@ -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]);
}
}