瀏覽代碼

BUG: Fixed echo command to not print trailing space.

Brad King 19 年之前
父節點
當前提交
b403ad61e2
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Source/cmake.cxx

+ 3 - 1
Source/cmake.cxx

@@ -800,9 +800,11 @@ int cmake::CMakeCommand(std::vector<std::string>& args)
     else if (args[1] == "echo" )
       {
       unsigned int cc;
+      const char* space = "";
       for ( cc = 2; cc < args.size(); cc ++ )
         {
-        std::cout << args[cc] << " ";
+        std::cout << space << args[cc];
+        space = " ";
         }
       std::cout << std::endl;
       return 0;