Fixing string index issue when checking for control characters

This commit is contained in:
Malay Shah 2009-11-18 17:40:22 +00:00
parent 5d0ed235c6
commit 617270bfaa

View File

@ -20,7 +20,7 @@ static bool isControlCharacter(char ch)
static bool containsControlCharacter( const char* str )
{
while ( str )
while ( *str )
{
if ( isControlCharacter( *(str++) ) )
return true;