fixed the processed length calculation bug in feed_json_data() in xli/json.c

This commit is contained in:
hyung-hwan 2019-06-13 05:45:47 +00:00
parent df7a5eda5f
commit 4d556c475a
3 changed files with 12 additions and 12 deletions

View File

@ -796,7 +796,7 @@ static int feed_json_data (qse_json_t* json, const qse_mchar_t* data, qse_size_t
else if (n > bcslen)
{
/* incomplete sequence */
*xlen = bcslen; /* need at lease this much */
*xlen = ptr - data; /* didn't manage to process in full */
return 0; /* feed more for incomplete sequence */
}