diff options
author | Neil <nyamatongwe@gmail.com> | 2015-10-19 11:31:31 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2015-10-19 11:31:31 +1100 |
commit | cc8189148a66e16479d4d4de92565f5326ddadbf (patch) | |
tree | 4493901061adc7254aa518de031bf517c6704685 | |
parent | a4777c79f37a179047c5ee4eb11406ba47c514b2 (diff) | |
download | scintilla-mirror-cc8189148a66e16479d4d4de92565f5326ddadbf.tar.gz |
Minor increase in allocation size prevents warning from VC++ analyze.
-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; |