Hack to avoid problems with termcap entries that take more space than

2KB. That's the currently recommended size of the buffer passed to
tgetent(). Our xterm entry is bigger, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26023 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2008-06-19 14:21:01 +00:00
parent a71fd7987b
commit 470198e08c
+5
View File
@@ -461,6 +461,11 @@ tgetent (bp, name)
char *indirect = NULL; /* Terminal type in :tc= in TERMCAP value. */
int filep;
// bonefish: HACK to avoid problems. Our termcap entries are longer than the
// 2KB that are advised as the size of the buffer to be passed to tgetent().
// This leads to nasty problems, so just always allocate a buffer.
bp = NULL;
#ifdef INTERNAL_TERMINAL
/* For the internal terminal we don't want to read any termcap file,
so fake it. */