1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

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

This was introduced in r303571.

Obtianed from:	Piotr Stefaniak
This commit is contained in:
Pedro F. Giffuni 2016-11-27 20:11:55 +00:00
parent 8ecd7189a4
commit 743210efd6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=309217

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 */