瀏覽代碼

ENH: Use new RunCommand

Andy Cedilnik 22 年之前
父節點
當前提交
2c33b3db65
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Source/cmSiteNameCommand.cxx

+ 2 - 2
Source/cmSiteNameCommand.cxx

@@ -102,8 +102,8 @@ bool cmSiteNameCommand::InitialPass(std::vector<std::string> const& args)
           nslookup_cmd += " ";
           nslookup_cmd += host;
           std::string nsOutput;
-          cmSystemTools::RunCommand(nslookup_cmd.c_str(),
-                                    nsOutput);
+          cmSystemTools::RunSingleCommand(nslookup_cmd.c_str(),
+                                          &nsOutput);
 
           // got the domain name
           if (nsOutput.length())