summaryrefslogtreecommitdiff
path: root/gen.c
diff options
context:
space:
mode:
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 );