Преглед изворни кода

BUG: Fixed off-by-one error in file list loop. Fix submitted by David A. Karr.

Brad King пре 23 година
родитељ
комит
296ded5e4d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Source/cmSourceGroupCommand.cxx

+ 1 - 1
Source/cmSourceGroupCommand.cxx

@@ -40,7 +40,7 @@ bool cmSourceGroupCommand::InitialPass(std::vector<std::string> const& args)
       sg =  m_Makefile->GetSourceGroup(args[0].c_str());
       }
     unsigned int cc;
-    for ( cc = 3; cc < args.size(); cc ++ )
+    for ( cc = 2; cc < args.size(); cc ++ )
       {
       sg->AddSource(args[cc].c_str(), 0);
       }