fixed: JSONToSpaceParser incorrectly read the last character from an UTF8 string (a last character before terminating zero char)

it caused a syntax error when parsing



git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@1101 e52654a7-88a9-db11-a3e9-0013d4bc506e
master
Tomasz Sowa 5 years ago
parent dd325bd4f9
commit 72a510ce71

@ -737,13 +737,11 @@ bool correct;
{
size_t len = PT::UTF8ToInt(pchar_ascii, c, correct);
pchar_ascii += len;
if( *pchar_ascii == 0 )
return lastc;
}
while( !correct );
while( *pchar_ascii && !correct );
lastc = c;
if( correct )
lastc = c;
if( lastc == '\n' )
++line;

Loading…
Cancel
Save