Fixed bounds error

Signed-off-by: Tyrolyean <tyrolyean@tyrolyean.net>
This commit is contained in:
Tyrolyean 2020-04-28 20:03:01 +02:00
parent 0e9980154d
commit 6f16191b31
No known key found for this signature in database
GPG Key ID: 81EC9BAC5E9667C6
1 changed files with 1 additions and 1 deletions

View File

@ -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(