Corrected offset

Signed-off-by: Tyrolyean <tyrolyean@tyrolyean.net>
This commit is contained in:
Tyrolyean 2020-04-30 22:14:41 +02:00
parent 2648be10c2
commit ad493bf2ec
No known key found for this signature in database
GPG Key ID: 81EC9BAC5E9667C6
1 changed files with 1 additions and 1 deletions

View File

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