X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=crypt.c;h=923b8d759b63b84a020b269002fde0caa9a81f19;hp=dad41c3cc44d4ec43e0e2b7094ef54ebe0622af5;hb=ae0ce4dfcafa0c3820f107c5bfa8bd06e5272b57;hpb=8e037c67a88cb4680c4391134c578e3b55a80f8a diff --git a/crypt.c b/crypt.c index dad41c3..923b8d7 100644 --- a/crypt.c +++ b/crypt.c @@ -16,10 +16,13 @@ # include "config.h" #endif +#include +#include +#include #include +#include #include "mutt.h" -#include "ascii.h" #include "handler.h" #include "mutt_curses.h" #include "mime.h" @@ -27,9 +30,6 @@ #include "mutt_crypt.h" #include "pgp.h" -#include "lib/mem.h" -#include "lib/intl.h" -#include "lib/str.h" #include #include @@ -390,7 +390,7 @@ int mutt_is_application_smime (BODY * m) /* no .p7c, .p10 support yet. */ - len = str_len (t) - 4; + len = m_strlen(t) - 4; if (len > 0 && *(t + len) == '.') { len++; if (!ascii_strcasecmp ((t + len), "p7m")) @@ -699,7 +699,7 @@ int crypt_get_keys (HEADER * msg, char **keylist) -static void crypt_fetch_signatures (BODY *** signatures, BODY * a, int *n) +static void crypt_fetch_signatures (BODY ***signatures, BODY * a, int *n) { if (!WithCrypto) return; @@ -709,7 +709,7 @@ static void crypt_fetch_signatures (BODY *** signatures, BODY * a, int *n) crypt_fetch_signatures (signatures, a->parts, n); else { if ((*n % 5) == 0) - mem_realloc (signatures, (*n + 6) * sizeof (BODY **)); + p_realloc(signatures, *n + 6); (*signatures)[(*n)++] = a; }