Debug string delete
Signed-off-by: Tyrolyean <tyrolyean@tyrolyean.net>
This commit is contained in:
parent
0aa030735f
commit
92898dd5fd
1 changed files with 7 additions and 2 deletions
|
@ -134,11 +134,16 @@ int remove_mail(struct email_t* mail){
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
size_t remove_offset = mail->message - root->message;
|
size_t remove_offset = mail->message - root->message;
|
||||||
|
|
||||||
|
propagate_size_change(mail, -remove_len);
|
||||||
|
|
||||||
remove_string(root->message, root->message_length,
|
remove_string(root->message, root->message_length,
|
||||||
remove_offset, remove_len);
|
remove_offset, remove_len);
|
||||||
|
|
||||||
propagate_size_change(mail, -remove_len);
|
propagate_insert_delete(root, root->message+remove_offset, -remove_len);
|
||||||
propagate_insert_delete(root, mail->message+remove_offset, -remove_len);
|
|
||||||
|
|
||||||
|
free_submails(mail);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue