X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=sendlib.c;h=a07b87d142f2e9ea5a82359df78df52994e21446;hp=5aa797489c89698eaaf73b7a6624a486a053716f;hb=ee869a42bc5677da8e3602ec1947af1736786648;hpb=ecaab35b973fbceb58b5ed174971c82762cc0199 diff --git a/sendlib.c b/sendlib.c index 5aa7974..a07b87d 100644 --- a/sendlib.c +++ b/sendlib.c @@ -17,6 +17,7 @@ #include #include #include +#include #include "mutt.h" #include "handler.h" @@ -412,7 +413,7 @@ int mutt_write_mime_body (BODY * a, FILE * f) /* This is pretty gross, but it's the best solution for now... */ if ((WithCrypto & APPLICATION_PGP) && a->type == TYPEAPPLICATION - && str_cmp (a->subtype, "pgp-encrypted") == 0) { + && m_strcmp(a->subtype, "pgp-encrypted") == 0) { fputs ("Version: 1\n", f); return 0; } @@ -833,7 +834,7 @@ CONTENT *mutt_get_content_info (const char *fname, BODY * b) } info = p_new(CONTENT, 1); - memset (&state, 0, sizeof (state)); + p_clear(&state, 1); if (b != NULL && b->type == TYPETEXT && (!b->noconv && !b->force_charset)) { char *chs = mutt_get_parameter ("charset", b->parameter); @@ -1052,7 +1053,7 @@ static void transform_to_7bit (BODY * a, FILE * fpin) STATE s; struct stat sb; - memset (&s, 0, sizeof (s)); + p_clear(&s, 1); for (; a; a = a->next) { if (a->type == TYPEMULTIPART) { if (a->encoding != ENC7BIT)