mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
parser: fix for partial content in routing-only mode
This commit is contained in:
parent
a7b3b22530
commit
1bed39e5d6
1 changed files with 3 additions and 0 deletions
|
@ -409,6 +409,9 @@ psycParseRC psyc_parse (psycParseState *state, char *oper,
|
||||||
else // Search for the terminator.
|
else // Search for the terminator.
|
||||||
{
|
{
|
||||||
size_t datac = state->cursor; // start of data
|
size_t datac = state->cursor; // start of data
|
||||||
|
if (state->flags & PSYC_PARSE_ROUTING_ONLY)
|
||||||
|
state->startc = datac; // in routing-only mode restart from the start of data
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
uint8_t nl = state->buffer.ptr[state->cursor] == '\n';
|
uint8_t nl = state->buffer.ptr[state->cursor] == '\n';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue