[net.bugs.2bsd] CURSES bug

thomson (10/12/82)

Curses limits the total length of all string capabilities in a terminal
description to 128 characters, and fails in silent and strange ways if this
limit is exceeded.  The local manifestations were games of "rogue" that
would not die.  The only documented limit seems to be 1024 bytes for the
entire text of the description, so to be on the safe side we have increased
the string length limit to 1024 as well.
a
We run 4.1BSD; the change is in version 1.3 of file cr_tty.c (5/15/81)
where
	static char tspace[128],
becomes
	static char tspace[1024],

					Brian Thomson
					CSRG University of Toronto
					utcsrgv!thomson

tombl (02/16/83)

The CURSES overlay() routine causes a core dump. The fix is simple:
substitute

# define	max(a,b)	(a > b ? a : b)

for

# define	max(a,b)	(a < b ? a : b)

on line 5 of overlay.c.

	Tom Blenko
	decvax!teklabs!tekmdp!tombl
	ucbvax!teklabs!tekmdp!tombl