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 | 965bcc37c1f8a917b428fe2dff2cf1ba492e60a1 (patch) | |
tree | 510cc7bece745df4891876c34433024d1a38c44b | |
parent | 05fbfe575baf4ae8dbf3d13419b907af8b619cb7 (diff) | |
download | scintilla-mirror-965bcc37c1f8a917b428fe2dff2cf1ba492e60a1.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; |