summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/flex.skl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/flex.skl b/src/flex.skl
index 6a7cde4..6f2a00b 100644
--- a/src/flex.skl
+++ b/src/flex.skl
@@ -1676,6 +1676,8 @@ m4_ifdef( [[M4_YY_USES_REJECT]],
(void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size M4_YY_CALL_LAST_ARG );
if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
+ /* "- 2" to take care of EOB's */
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
}
YY_G(yy_n_chars) += number_to_move;