Commit 745aa537 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: fix infinite loop from size_t change

parent f26be4ea
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment