mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-22 16:58:11 +08:00
Fixing string index issue when checking for control characters
This commit is contained in:
@@ -20,7 +20,7 @@ static bool isControlCharacter(char ch)
|
|||||||
|
|
||||||
static bool containsControlCharacter( const char* str )
|
static bool containsControlCharacter( const char* str )
|
||||||
{
|
{
|
||||||
while ( str )
|
while ( *str )
|
||||||
{
|
{
|
||||||
if ( isControlCharacter( *(str++) ) )
|
if ( isControlCharacter( *(str++) ) )
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user