瀏覽代碼

bug fix to escaped semicolons in arguments

Ken Martin 22 年之前
父節點
當前提交
06092a31fd
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Source/cmSystemTools.cxx

+ 3 - 1
Source/cmSystemTools.cxx

@@ -905,10 +905,12 @@ void cmSystemTools::ExpandListArgument(const std::string& arg,
             }
           newarg = arg.substr(start, len);
           }
+        // unescape semicolons 
         std::string::size_type pos = newarg.find("\\;");
-        if(pos != std::string::npos)
+        while (pos != std::string::npos)
           {
           newarg.erase(pos, 1);
+          pos = newarg.find("\\;");
           }
         newargs.push_back(newarg);
         }