indent(1): minor off-by-one error.

This was introduced in r303571.

Obtianed from:	Piotr Stefaniak
This commit is contained in:
pfg 2016-11-27 20:11:55 +00:00
parent add8fe4b90
commit 1e69348217

View File

@ -202,7 +202,7 @@ parse(int tk) /* tk: the code for the construct scanned */
} /* end of switch */
if (ps.tos >= STACKSIZE)
if (ps.tos >= STACKSIZE - 1)
errx(1, "Parser stack overflow");
reduce(); /* see if any reduction can be done */