1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00

fixed a bug

This commit is contained in:
Marenz 2011-04-17 14:22:01 +02:00
parent fc829ecbb3
commit a3cccb5fda
2 changed files with 3 additions and 6 deletions

View file

@ -321,7 +321,7 @@ start:
return PSYC_INSUFFICIENT; // return insufficient 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'; binLength = 10 * binLength + state->buffer.ptr[state->cursor] - '0';
@ -380,10 +380,7 @@ start:
state->cursor+=1; state->cursor+=1;
state->inBody = 1; state->inBody = 1;
if (state->flags & PSYC_HEADER_ONLY) return PSYC_ROUTING; // return header finished
return PSYC_HEADER_COMPLETE; // return header finished
else
goto start;
} }
if(state->buffer.ptr[state->cursor] != '|') // no pipe, then only line complete, not the packet. if(state->buffer.ptr[state->cursor] != '|') // no pipe, then only line complete, not the packet.

View file

@ -32,8 +32,8 @@ int main(int argc, char** argv)
{ {
case PSYC_ROUTING: case PSYC_ROUTING:
case PSYC_ENTITY: case PSYC_ENTITY:
case PSYC_METHOD:
write(0,&modifier,1); write(0,&modifier,1);
case PSYC_METHOD:
write(0,name.ptr, name.length); write(0,name.ptr, name.length);
write(0," = ", 3); write(0," = ", 3);
write(0,value.ptr, value.length); write(0,value.ptr, value.length);