1
0
Fork 0
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:
tg(x) 2011-05-08 22:08:48 +02:00
parent a7b3b22530
commit 1bed39e5d6

View file

@ -409,6 +409,9 @@ psycParseRC psyc_parse (psycParseState *state, char *oper,
else // Search for the terminator.
{
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)
{
uint8_t nl = state->buffer.ptr[state->cursor] == '\n';