mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-06-06 16:54:56 +02:00
Fixing string index issue when checking for control characters
This commit is contained in:
parent
5d0ed235c6
commit
617270bfaa
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user