SVN commit 1059216 by rodda: Avoid access past end of input stream by querying the correct stream (is) [as seen on reviewboard] M +2 -2 pp-macro-expander.cpp --- trunk/extragear/sdk/kdevelop/languages/cpp/parser/rpp/pp-macro-expander.cpp #1059215:1059216 @@ -293,10 +293,10 @@ ///@todo Create a test-case for this code while (!is.atEnd()) { - if (input == '"') { + if (is == '"') { output << '\\' << is; - } else if (input == '\n') { + } else if (is == '\n') { output << '"' << is << '"'; } else {