Corrected debug output

Signed-off-by: tyrolyean <tyrolyean@tyrolyean.net>
This commit is contained in:
tyrolyean 2020-04-29 02:11:47 +02:00
parent 9ee2dd8b75
commit 80e3efe078
No known key found for this signature in database
GPG Key ID: EDD105663B707C62
1 changed files with 1 additions and 2 deletions

View File

@ -44,12 +44,11 @@ struct email_t mail_from_text(char* message, size_t length){
mail.is_multipart = false;
return mail;
}else{
printf("Content Type set: %.*s",15, cont_type);
size_t value_length = 0;
char * mime_type = get_value_from_key(&value_length,
cont_type - mail.message, &mail);
if(mime_type != NULL){
printf("Found message mime type: %.*s\n",
printf("Found message mime type: [%.*s]\n",
(int)value_length, mime_type);
}
}