mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
fixed a bug
This commit is contained in:
parent
eecbdc001c
commit
9bb144b9ac
2 changed files with 3 additions and 6 deletions
|
@ -321,7 +321,7 @@ start:
|
|||
return PSYC_INSUFFICIENT; // return insufficient
|
||||
}
|
||||
|
||||
while(isNumeric(state->buffer.ptr[state->cursor]));
|
||||
while(isNumeric(state->buffer.ptr[state->cursor]))
|
||||
{
|
||||
binLength = 10 * binLength + state->buffer.ptr[state->cursor] - '0';
|
||||
|
||||
|
@ -380,10 +380,7 @@ start:
|
|||
state->cursor+=1;
|
||||
state->inBody = 1;
|
||||
|
||||
if (state->flags & PSYC_HEADER_ONLY)
|
||||
return PSYC_HEADER_COMPLETE; // return header finished
|
||||
else
|
||||
goto start;
|
||||
return PSYC_ROUTING; // return header finished
|
||||
}
|
||||
|
||||
if(state->buffer.ptr[state->cursor] != '|') // no pipe, then only line complete, not the packet.
|
||||
|
|
|
@ -32,8 +32,8 @@ int main(int argc, char** argv)
|
|||
{
|
||||
case PSYC_ROUTING:
|
||||
case PSYC_ENTITY:
|
||||
case PSYC_METHOD:
|
||||
write(0,&modifier,1);
|
||||
case PSYC_METHOD:
|
||||
write(0,name.ptr, name.length);
|
||||
write(0," = ", 3);
|
||||
write(0,value.ptr, value.length);
|
||||
|
|
Loading…
Reference in a new issue