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
}
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.

View File

@ -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);