From 9176ce619d7df939d6d732f37e91eaf4a1badfc6 Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Wed, 3 Aug 1994 11:38:16 +0000 Subject: [PATCH] Fixed fencepost in call to yy_flex_strncpy --- gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen.c b/gen.c index 8e5430f..84a588e 100644 --- a/gen.c +++ b/gen.c @@ -1049,7 +1049,7 @@ void make_tables() "YY_FATAL_ERROR( \"token too large, exceeds YYLMAX\" ); \\" ); indent_down(); indent_puts( - "yy_flex_strncpy( yytext, yytext_ptr, yyleng ); \\" ); + "yy_flex_strncpy( yytext, yytext_ptr, yyleng + 1 ); \\" ); } set_indent( 0 ); -- 2.50.1