ENH: fix infinite loop from size_t change
This commit is contained in:
parent
f2dfa8925b
commit
e3b0d3927a
|
@ -2176,7 +2176,7 @@ int SystemInformationImplementation::RetreiveInformationFromCpuInfoFile()
|
||||||
int currentId = -1;
|
int currentId = -1;
|
||||||
kwsys_stl::string idc = this->ExtractValueFromCpuInfoFile(buffer,"physical id");
|
kwsys_stl::string idc = this->ExtractValueFromCpuInfoFile(buffer,"physical id");
|
||||||
|
|
||||||
while(this->CurrentPositionInFile>0)
|
while(this->CurrentPositionInFile != buffer.npos)
|
||||||
{
|
{
|
||||||
int id = atoi(idc.c_str());
|
int id = atoi(idc.c_str());
|
||||||
if(id == currentId)
|
if(id == currentId)
|
||||||
|
|
Loading…
Reference in New Issue