diff options
author | Andreas Bregas <ab@openoffice.org> | 2011-01-05 14:00:31 +0100 |
---|---|---|
committer | Andreas Bregas <ab@openoffice.org> | 2011-01-05 14:00:31 +0100 |
commit | 85ac003e2d0eb6ab7ebe2ec6a3eb8cdac662ac98 (patch) | |
tree | 53c58322675c24361d17a76581c6d1f9e363dcc3 /svtools | |
parent | 8dc3743ca56382374183bec5cd1a11d53f3085b8 (diff) |
ab79: #i109702# Avoid reading past end of string
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/edit/syntaxhighlight.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/edit/syntaxhighlight.cxx b/svtools/source/edit/syntaxhighlight.cxx index 87585f5b2587..6ea9f05d78a1 100644 --- a/svtools/source/edit/syntaxhighlight.cxx +++ b/svtools/source/edit/syntaxhighlight.cxx @@ -523,7 +523,7 @@ BOOL SimpleTokenizer_Impl::getNextToken( /*out*/TokenTypes& reType, c = getChar(); // '/' entfernen // Alle Zeichen bis Zeilen-Ende oder EOF entfernen - sal_Unicode cPeek = peekChar(); + sal_Unicode cPeek = c; while( cPeek != CHAR_EOF && testCharFlags( cPeek, CHAR_EOL ) == FALSE ) { getChar(); |