summaryrefslogtreecommitdiff
path: root/gen.c
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>1994-08-03 11:38:16 +0000
committerVern Paxson <vern@ee.lbl.gov>1994-08-03 11:38:16 +0000
commit9176ce619d7df939d6d732f37e91eaf4a1badfc6 (patch)
tree5b02cdc3a19947f79e53855af97f6907a5942937 /gen.c
parent82c33b189c380ec05c891041fea09f6c3c86a53e (diff)
Fixed fencepost in call to yy_flex_strncpy
Diffstat (limited to 'gen.c')
-rw-r--r--gen.c2
1 files changed, 1 insertions, 1 deletions
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 );