summaryrefslogtreecommitdiffstats
path: root/Source/kwsys
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-11-01 21:57:05 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-11-01 21:57:05 (GMT)
commit160c32e529aef4c685f61216b9d46889a8eae290 (patch)
treee66cfc165cd12e0a4659becd22f34310caeb335f /Source/kwsys
parent8ef263ff51dc1db067f8a7cee8828ba56a2a13ae (diff)
downloadCMake-160c32e529aef4c685f61216b9d46889a8eae290.zip
CMake-160c32e529aef4c685f61216b9d46889a8eae290.tar.gz
CMake-160c32e529aef4c685f61216b9d46889a8eae290.tar.bz2
BUG: add a test for a single char dir, and fix bug introduced in 1.53, but we still can not handle a space as the start of a directory name
Diffstat (limited to 'Source/kwsys')
-rw-r--r--Source/kwsys/SystemTools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index d5b5b74..39d31a3 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -744,7 +744,7 @@ void SystemTools::ConvertToUnixSlashes(kwsys_stl::string& path)
while((pos = path.find('\\', pos)) != kwsys_stl::string::npos)
{
// make sure we don't convert an escaped space to a unix slash
- if(pos < path.size()-2)
+ if(pos < path.size()-1)
{
if(path[pos+1] != ' ')
{