From ad493bf2ec8ede41d98d44adf076219c67e5e0d8 Mon Sep 17 00:00:00 2001 From: Tyrolyean Date: Thu, 30 Apr 2020 22:14:41 +0200 Subject: [PATCH] Corrected offset Signed-off-by: Tyrolyean --- src/mail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mail.c b/src/mail.c index ae91845..59341b0 100644 --- a/src/mail.c +++ b/src/mail.c @@ -128,7 +128,7 @@ int remove_mail(struct email_t* mail){ end = followup->message - 1; } - size_t remove_len = mail->message - end; + size_t remove_len = end - mail->message; struct email_t *root = get_root_mail(mail); if(root == NULL){ return -1;