mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Restore documented tgetstr() behavior.
This commit is contained in:
parent
439a479b3b
commit
2a0434714f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=50829
@ -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]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user