Subject: tgetstr bug
To: None <tech-userlevel@netbsd.org>
From: Bruno Haible <bruno@clisp.org>
List: tech-userlevel
Date: 12/14/2006 15:05:50
tgetstr ("md", NULL) crashes on NetBSD. It's here:
src/lib/libterm/termcap.c:
char *
t_getstr(struct tinfo *info, const char *id, char **area, size_t *limit)
{
...
_DIAGASSERT(limit != NULL);
*limit = i; <=====
free(s);
return NULL;
...
}
Other systems support tgetstr ("md", NULL) without problems, and
return the string in a statically allocated buffer.
Bruno