mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-27 11:21:02 +08: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 )
|
||||
{
|
||||
while ( str )
|
||||
while ( *str )
|
||||
{
|
||||
if ( isControlCharacter( *(str++) ) )
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user