From cc8189148a66e16479d4d4de92565f5326ddadbf Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 19 Oct 2015 11:31:31 +1100 Subject: Minor increase in allocation size prevents warning from VC++ analyze. --- lexers/LexInno.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexers/LexInno.cxx b/lexers/LexInno.cxx index d60377eda..50aa25d28 100644 --- a/lexers/LexInno.cxx +++ b/lexers/LexInno.cxx @@ -33,7 +33,7 @@ static void ColouriseInnoDoc(Sci_PositionU startPos, Sci_Position length, int, W char ch = 0; char chNext = styler[startPos]; Sci_Position lengthDoc = startPos + length; - char *buffer = new char[length]; + char *buffer = new char[length+1]; Sci_Position bufferCount = 0; bool isBOL, isEOL, isWS, isBOLWS = 0; bool isCStyleComment = false; -- cgit v1.2.3