diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-02-02 21:18:35 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-02-02 21:18:35 (GMT) |
commit | e3b0d3927af4e6a1f9c4dec3c54b04b7f67e3c01 (patch) | |
tree | ab8e67d93633d10fb8cb314377f423deb1e895ca /Source | |
parent | f2dfa8925b10705dabcc9726f26193132b3fd416 (diff) | |
download | CMake-e3b0d3927af4e6a1f9c4dec3c54b04b7f67e3c01.zip CMake-e3b0d3927af4e6a1f9c4dec3c54b04b7f67e3c01.tar.gz CMake-e3b0d3927af4e6a1f9c4dec3c54b04b7f67e3c01.tar.bz2 |
ENH: fix infinite loop from size_t change
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/SystemInformation.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx index 3b9f41a..73c7189 100644 --- a/Source/kwsys/SystemInformation.cxx +++ b/Source/kwsys/SystemInformation.cxx @@ -2176,7 +2176,7 @@ int SystemInformationImplementation::RetreiveInformationFromCpuInfoFile() 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) |