Bugs in Curses (fix!)

Mike Durbin emike at riccb.UUCP
Tue Aug 20 23:57:35 AEST 1985


--------------- HELLO?

In article <4966 at mit-eddie.UUCP> simsong at mit-eddie.UUCP (Simson L. Garfinkel) writes:
>>I've been using Curses at a number of different cites on both VAXen and
>>suns. It appears that any application linked with curses core-dumps if
>>the screen is more than 80 col. wide.

In article <9939 at ucbvax.ARPA> anton at ucbvax.ARPA (Jeff Anton) writes:
>...  A kludge fix to this problem is to
>place after initscr and newwin calls a 'malloc(1);'.

In article <117 at mcgill-vision.UUCP> mouse at mcgill-vision.UUCP (der Mouse) writes:
>...  If anyone has a fix please send it to us as well!

The problem is in refresh.c.  Change line 227 from:

	while (*nsp == *csp)

to

	while (wx < win->_maxx && *nsp == *csp)

Recompile libcurses, then relink talk and other programs that use curses.
We haven't had any core dumps from curses after implementing this.
-- 
::::::::::::::::::
					emike
					(E. Mike Durbin)
					...!ihnp4!
					...!ihopa!riccb!emike
					...!cuuxb!



More information about the Comp.unix.wizards mailing list