aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-04-03 08:16:31 +0000
committernyamatongwe <unknown>2001-04-03 08:16:31 +0000
commit447b7052109f27609f2f89d031a76ad368b20946 (patch)
treef121569c618f9789e93f0f01b4d82307a9c6800d /src
parent8a9dc67d7ce5751e25944334e60b41ab2278dc43 (diff)
downloadscintilla-mirror-447b7052109f27609f2f89d031a76ad368b20946.tar.gz
Fixed read of uninitialised memory when searching for '=' in properties
files.
Diffstat (limited to 'src')
-rw-r--r--src/LexOthers.cxx3
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);