[cmake-commits] hoffman committed SystemInformation.cxx 1.19 1.20
cmake-commits at cmake.org
cmake-commits at cmake.org
Sat Feb 2 16:18:37 EST 2008
Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv9570
Modified Files:
SystemInformation.cxx
Log Message:
ENH: fix infinite loop from size_t change
Index: SystemInformation.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/SystemInformation.cxx,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- SystemInformation.cxx 1 Feb 2008 17:35:50 -0000 1.19
+++ SystemInformation.cxx 2 Feb 2008 21:18:35 -0000 1.20
@@ -2176,7 +2176,7 @@
int currentId = -1;
kwsys_stl::string idc = this->ExtractValueFromCpuInfoFile(buffer,"physical id");
- while(this->CurrentPositionInFile>0)
+ while(this->CurrentPositionInFile != buffer.npos)
{
int id = atoi(idc.c_str());
if(id == currentId)
More information about the Cmake-commits
mailing list