X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=send.c;h=01fde6c680c3d6e13daa55d9437c08d5b879d0d2;hp=d39deae9a93e5378e9bee380e52b021f75e9c5f3;hb=c6b9d35ed9361e4defab9762a7480d5126405ae9;hpb=7f7a0be369840b290248e5b0302beb447fa1b3cd diff --git a/send.c b/send.c index d39deae..01fde6c 100644 --- a/send.c +++ b/send.c @@ -13,11 +13,12 @@ #include #include +#include #include +#include #include "mutt.h" #include "enter.h" -#include "ascii.h" #include "mutt_curses.h" #include "rfc2047.h" #include "rfc3676.h" @@ -266,7 +267,7 @@ static int edit_envelope (ENVELOPE * en, int flags) if (ascii_strncasecmp ("subject:", uh->data, 8) == 0) { p = uh->data + 8; SKIPWS (p); - strncpy (buf, p, sizeof (buf)); + m_strcpy(buf, sizeof(buf), p); } } } @@ -1325,7 +1326,7 @@ int ci_send_message (int flags, /* send mode */ if (option (OPTSIGONTOP) && (!(flags & (SENDMAILX | SENDKEY)) && Editor - && str_cmp (Editor, "builtin") != 0)) + && m_strcmp(Editor, "builtin") != 0)) append_signature (tempfp); /* include replies/forwarded messages, unless we are given a template */ @@ -1335,7 +1336,7 @@ int ci_send_message (int flags, /* send mode */ if (!option (OPTSIGONTOP) && (!(flags & (SENDMAILX | SENDKEY)) && Editor - && str_cmp (Editor, "builtin") != 0)) + && m_strcmp(Editor, "builtin") != 0)) append_signature (tempfp); /* @@ -1449,7 +1450,7 @@ int ci_send_message (int flags, /* send mode */ if (mutt_needs_mailcap (msg->content)) { if (!mutt_edit_attachment (msg->content)) goto cleanup; - } else if (!Editor || str_cmp ("builtin", Editor) == 0) + } else if (!Editor || m_strcmp("builtin", Editor) == 0) mutt_builtin_editor (msg->content->filename, msg, cur); else if (option (OPTEDITHDRS)) { mutt_env_to_local (msg->env); @@ -1701,7 +1702,7 @@ int ci_send_message (int flags, /* send mode */ fcc[0] = '\0'; #endif - if (*fcc && str_cmp ("/dev/null", fcc) != 0) { + if (*fcc && m_strcmp("/dev/null", fcc) != 0) { BODY *tmpbody = msg->content; BODY *save_sig = NULL; BODY *save_parts = NULL; @@ -1712,8 +1713,8 @@ int ci_send_message (int flags, /* send mode */ /* check to see if the user wants copies of all attachments */ if (!option (OPTFCCATTACH) && msg->content->type == TYPEMULTIPART) { if (WithCrypto - && (str_cmp (msg->content->subtype, "encrypted") == 0 || - str_cmp (msg->content->subtype, "signed") == 0)) { + && (m_strcmp(msg->content->subtype, "encrypted") == 0 || + m_strcmp(msg->content->subtype, "signed") == 0)) { if (clear_content->type == TYPEMULTIPART) { if (!(msg->security & ENCRYPT) && (msg->security & SIGN)) { /* save initial signature and attachments */