Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
745aa537
Commit
745aa537
authored
Feb 02, 2008
by
Bill Hoffman
Browse files
ENH: fix infinite loop from size_t change
parent
f26be4ea
Changes
1
Show whitespace changes
Inline
Side-by-side
Utilities/kwsys/SystemInformation.cxx
View file @
745aa537
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment