diff --git a/src/attach.c b/src/attach.c index 8fdc6eb..e80c5ce 100644 --- a/src/attach.c +++ b/src/attach.c @@ -387,14 +387,14 @@ int replace_files(struct email_t* mail, const char* dirname, bool* created){ static const char* html_filler_pref = "
MAIL ATTACHED The following attachment of this mail has " "been remotely stored:
\r\n" - "

File %s of Type %s as %s/%s

\r\n"; + "

File %s of Type %s as %s%s

\r\n"; static const char* text_filler_pref = " --- MAIL ATTACHED ---\r\n The following attachment of this mail has " "been remotely stored:\r\n" - "File %s of Type %s as %s/%s\r\n"; + "File %s of Type %s as %s%s\r\n"; - size_t directory_len = strlen(dirname); + size_t directory_len = strlen(directory); size_t url_len = strlen(url_base); size_t mime_len = 0; if(mail->file_info.mime_type != NULL){