From 470198e08ce1eae3eecaed773cbcbbd6f08dda01 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 19 Jun 2008 14:21:01 +0000 Subject: [PATCH] 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 --- src/libs/termcap/termcap.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libs/termcap/termcap.c b/src/libs/termcap/termcap.c index 1a90751291..f44ba64a22 100644 --- a/src/libs/termcap/termcap.c +++ b/src/libs/termcap/termcap.c @@ -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. */