From 74407bc0f685b66dd35afc451b6996db3f9b239f Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Wed, 20 Jul 2016 16:07:04 -0400 Subject: [PATCH] fixed a bug in the new relex process --- 4ed_file_view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/4ed_file_view.cpp b/4ed_file_view.cpp index cabe9bea..cfd5756f 100644 --- a/4ed_file_view.cpp +++ b/4ed_file_view.cpp @@ -1389,7 +1389,7 @@ file_relex_parallel(System_Functions *system, relex_space.tokens = push_array(part, Cpp_Token, relex_space.max_count); #if USE_NEW_LEXER - char *spare = push_array(part, char, size); + char *spare = push_array(part, char, size+1); if (cpp_relex_nonalloc_main(&state, &relex_space, &relex_end, spare)){ #else if (cpp_relex_nonalloc_main(&state, &relex_space, &relex_end)){