Added even more debug output
Signed-off-by: Tyrolyean <tyrolyean@tyrolyean.net>
This commit is contained in:
parent
c614aafa7f
commit
a9f30b9ff0
1 changed files with 5 additions and 3 deletions
|
@ -136,15 +136,17 @@ int remove_mail(struct email_t* mail){
|
|||
size_t remove_len = end - mail->message;
|
||||
size_t remove_offset = mail->message - root->message;
|
||||
|
||||
propagate_size_change(mail, -remove_len);
|
||||
|
||||
if(!remove_string(root->message, root->message_length,
|
||||
remove_offset, remove_len)){
|
||||
fprintf(stderr, "Unwilling to remove string from message at "
|
||||
"offset %lu with len %lu!\n", remove_offset,
|
||||
remove_len);
|
||||
"offset %lu with len %lu total length is %lu!\n",
|
||||
remove_offset,
|
||||
remove_len,
|
||||
root->message_length);
|
||||
return -1;
|
||||
}
|
||||
propagate_size_change(mail, -remove_len);
|
||||
|
||||
propagate_insert_delete(root, root->message+remove_offset, -remove_len);
|
||||
|
||||
|
|
Loading…
Reference in a new issue