summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-05-17 15:27:46 (GMT)
committerBrad King <brad.king@kitware.com>2007-05-17 15:27:46 (GMT)
commit9bfe711ef10a02db0cb63c7fcb797fbc0df705ab (patch)
tree87307509fdbf245f7b3e8f49c2c2d119685cd2dc /Source
parent51fe906ab7c6fe19e18801bffba745472b1e729d (diff)
downloadCMake-9bfe711ef10a02db0cb63c7fcb797fbc0df705ab.zip
CMake-9bfe711ef10a02db0cb63c7fcb797fbc0df705ab.tar.gz
CMake-9bfe711ef10a02db0cb63c7fcb797fbc0df705ab.tar.bz2
BUG: Fix ExpandListArgument when the string ends in a backslash.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmSystemTools.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 3553259..41444ad 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1152,6 +1152,11 @@ void cmSystemTools::ExpandListArgument(const std::string& arg,
{
newArgVec.push_back(*c);
}
+ else
+ {
+ // Terminate the loop properly.
+ --c;
+ }
}
} break;
case '[':