From kde-commits Sun Dec 06 03:23:17 2009 From: Hamish Rodda Date: Sun, 06 Dec 2009 03:23:17 +0000 To: kde-commits Subject: extragear/sdk/kdevelop/languages/cpp/parser/rpp Message-Id: <1260069797.101264.29944.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=126006980532186 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 {