Fixed bounds error
Signed-off-by: Tyrolyean <tyrolyean@tyrolyean.net>
This commit is contained in:
parent
0e9980154d
commit
6f16191b31
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ void receive_mail(struct mail_recv_t* rec){
|
|||
rec->input_buffer+rec->body_offs, body_len);
|
||||
rec->input_buffer = realloc(rec->input_buffer,
|
||||
body_len + 1);
|
||||
rec->input_buffer[body_len+1] = 0;
|
||||
rec->input_buffer[body_len] = 0;
|
||||
rec->in_len = body_len;
|
||||
|
||||
char* new_body = attach_files(
|
||||
|
|
Loading…
Reference in a new issue