aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2015-10-19 11:31:31 +1100
committerNeil <nyamatongwe@gmail.com>2015-10-19 11:31:31 +1100
commitcc8189148a66e16479d4d4de92565f5326ddadbf (patch)
tree4493901061adc7254aa518de031bf517c6704685
parenta4777c79f37a179047c5ee4eb11406ba47c514b2 (diff)
downloadscintilla-mirror-cc8189148a66e16479d4d4de92565f5326ddadbf.tar.gz
Minor increase in allocation size prevents warning from VC++ analyze.
-rw-r--r--lexers/LexInno.cxx2
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;