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:
Gabor Adam Toth 2011-05-08 22:08:48 +02:00
parent 16fdc8691a
commit fa877024ae

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';