diff options
author | nyamatongwe <devnull@localhost> | 2001-04-03 08:16:31 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2001-04-03 08:16:31 +0000 |
commit | 8a44372b918d6bf8fcfa238633a38d7dac4c0dd6 (patch) | |
tree | f121569c618f9789e93f0f01b4d82307a9c6800d | |
parent | 22b450bc88790161b38f2b55bea64e17bda4505d (diff) | |
download | scintilla-mirror-8a44372b918d6bf8fcfa238633a38d7dac4c0dd6.tar.gz |
Fixed read of uninitialised memory when searching for '=' in properties
files.
-rw-r--r-- | src/LexOthers.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/LexOthers.cxx b/src/LexOthers.cxx index f3acd2f9d..2f0520f1f 100644 --- a/src/LexOthers.cxx +++ b/src/LexOthers.cxx @@ -221,7 +221,8 @@ static void ColourisePropsLine( styler.ColourTo(startLine+i, 3); styler.ColourTo(endPos, 0); } else { - while (lineBuffer[i] != '=' && (i < lengthLine)) // Search the '=' character + // Search for the '=' character + while (lineBuffer[i] != '=' && (i < lengthLine-1)) i++; if (lineBuffer[i] == '=') { styler.ColourTo(startLine+i-1, 0); |