1
1
forked from 0ad/0ad

Fix crash bug in CPU detection (used sizeof pointer instead of strlen)

This was SVN commit r5380.
This commit is contained in:
Simon Brenner 2007-09-29 17:09:13 +00:00
parent 041af89ea2
commit 89bf2e609a

View File

@ -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