Fix crash bug in CPU detection (used sizeof pointer instead of strlen)
This was SVN commit r5380.
This commit is contained in:
parent
041af89ea2
commit
89bf2e609a
@ -239,7 +239,7 @@ static void DetectIdentifierString(char* identifierString)
|
||||
{
|
||||
const char* const undesired_strings[] = { "(tm)", "(TM)", "(R)", "CPU " };
|
||||
std::for_each(undesired_strings, undesired_strings+ARRAY_SIZE(undesired_strings),
|
||||
StringStripper(identifierString, ARRAY_SIZE(identifierString)));
|
||||
StringStripper(identifierString, strlen(identifierString)+1));
|
||||
|
||||
// note: Intel brand strings include a frequency, but we can't rely
|
||||
// on it because the CPU may be overclocked. we'll leave it in the
|
||||
|
Loading…
Reference in New Issue
Block a user