mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 22:51:59 +01:00
Fixed parsing the received lines
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
fcaa841da0
commit
4ce49d6bc2
@ -470,7 +470,7 @@ int parse_line(char *buf, struct parser_state *state, struct session_data *sdata
|
||||
fill_attachment_name_buf(state, buf);
|
||||
}
|
||||
|
||||
if(state->received_header == 1 && state->message_state == MSG_RECEIVED){
|
||||
if(state->received_header == 1 && state->message_state == MSG_RECEIVED && strlen(state->receivedbuf) + len < sizeof(state->receivedbuf)){
|
||||
memcpy(&(state->receivedbuf[strlen(state->receivedbuf)]), buf, len);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user