NetBSD/lib/libterm
christos 961acd7fc2 PR/10266: t_getstr() leaks memory. This PR will stay in feedback
until the problem gets addressed properly. The following fix
is a stopgap measure to stop the leaking :-(

I fixed the t_getstr() memory leak problem, but that instantly
revealed a problem in t_agetstr() which is an extremely broken
interface. It realloc's memory, potentially moving the area where
it returned pointers into in previous calls. This function needs
to be removed and or changed. I added a horrible work-around for
now, but I will revisit the problem shortly. In the meantime nobody
should be using the t_agetstr() API, and I'll be fixing the rest
of the programs and or the API when I figure out the best solution...
This is t_agetstr() is used by:

	games/hack/hack.termcap.c
	games/larn/io.c
	games/tetris/screen.c
	lib/libterm/termcap.c
	lib/libterm/termcap.h
	libexec/getty/main.c
	usr.bin/top/screen.c
	usr.bin/ul/ul.c
2001-10-31 21:52:17 +00:00
..
TEST
Makefile use ${SHLIB_FULLVERSION} instead of ${SHLIB_MAJOR}.${SHLIB_MINOR} 2000-07-03 21:10:57 +00:00
pathnames.h
shlib_version * Fixed Makefile to proper set includes path 2000-05-28 09:58:15 +00:00
termcap.3 fix spelling mistake and mention when the t_* functions appeared. 2001-01-05 23:05:08 +00:00
termcap.c PR/10266: t_getstr() leaks memory. This PR will stay in feedback 2001-10-31 21:52:17 +00:00
termcap.h * Fixed Makefile to proper set includes path 2000-05-28 09:58:15 +00:00
termcap_private.h withough -> without 2001-06-13 10:45:57 +00:00
tgoto.c sprinkle some _DIAGASSERT()s in 2001-01-09 07:18:49 +00:00
tputs.c make tmspc10[] const 2001-01-23 15:56:46 +00:00