bug in tgetent()

utzoo!decvax!harpo!utah-cs!utah-gr!thomas utzoo!decvax!harpo!utah-cs!utah-gr!thomas
Sun Aug 8 12:51:47 AEST 1982


If you're going to make a separate routine for recursing, then you
can just add the depth as an argument:

tgetent(bp, name)
char *bp, *name;
{
	_tgetent(bp, name, 0);
}

_tgetent(bp, name, depth)
char *bp, *name;
{
	if (depth > 32) 
		/* Do Error Stuff */
	else
	{
		....
		/* tc= processing */
		_tgetent(bp, newname, depth+1);
		....
	}
}

=Spencer



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