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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user