From 3988da781b50016ea9b45954e039c32e95f8a1a7 Mon Sep 17 00:00:00 2001
From: Bill Hoffman <bill.hoffman@kitware.com>
Date: Mon, 1 Nov 2004 16:57:05 -0500
Subject: [PATCH] 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

---
 SystemTools.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SystemTools.cxx b/SystemTools.cxx
index fcd30071..e72e02d2 100644
--- a/SystemTools.cxx
+++ b/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] != ' ')
         {
-- 
GitLab