From 4e8956f8488d71928149ab617acf86659db03b91 Mon Sep 17 00:00:00 2001 From: Tyrolyean Date: Tue, 28 Apr 2020 20:04:21 +0200 Subject: [PATCH] Corrected pointers to body from old style Signed-off-by: Tyrolyean --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 43855d7..e973f15 100644 --- a/src/main.c +++ b/src/main.c @@ -111,8 +111,8 @@ void receive_mail(struct mail_recv_t* rec){ rec->in_len = body_len; char* new_body = attach_files( - rec->input_buffer+rec->body_offs, - body_len); + rec->input_buffer, + rec->in_len); if(new_body != NULL){ /* Write the replacement */