$OpenBSD: patch-zlexer_lex,v 1.1 2004/02/18 19:25:38 jakob Exp $
--- zlexer.lex.orig	2004-02-11 01:01:31.000000000 -0800
+++ zlexer.lex	2004-02-18 07:28:51.000000000 -0800
@@ -144,9 +144,11 @@ Q       \"
 			        BEGIN(INITIAL);
         		}	
 <<EOF>>			{	/* end of file is reached - check if we were including */
-        			if ( --include_stack_ptr < 0 )
-				            yyterminate();
-        			else {
+				if (include_stack_ptr == 0) {
+					yyterminate();
+        			} else {
+					--include_stack_ptr;
+					
 					/* pop (once you pop, you can not stop) */
 					current_parser->filename =
 						zparser_stack[include_stack_ptr].filename;
