diff options
-rw-r--r-- | lexers/LexInno.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |