From e3b0d3927af4e6a1f9c4dec3c54b04b7f67e3c01 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Sat, 2 Feb 2008 16:18:35 -0500 Subject: [PATCH] ENH: fix infinite loop from size_t change --- Source/kwsys/SystemInformation.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx index 3b9f41a3c..73c7189fe 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)