tbl bug + fix

Dave Davey daved at physiol.su.oz
Tue Oct 11 08:49:07 AEST 1988


tbl will dump core if given a long (>256) input line for a text block.
In tg.c, gettext() calls gets1(line) with line dimensioned to 256,
but gets1 calls fgets with n=BUFSIZ.

Fix:
	in tg.c gettext() change declaration of line to:
	char line[BUFSIZ];



More information about the Comp.bugs.4bsd.ucb-fixes mailing list