X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=crypt-gpgme.c;h=8bb78669269734d6f8a9c4364afbd0c934360f58;hp=0c0bbf70f69ab6f5b2a30619b7c5b7c37ec3125e;hb=617e7d83d14e14e6a520a48e75437211b16c8834;hpb=b3cb6ed8d36c550a2e589910ce51bbc8352ff57c diff --git a/crypt-gpgme.c b/crypt-gpgme.c index 0c0bbf7..8bb7866 100644 --- a/crypt-gpgme.c +++ b/crypt-gpgme.c @@ -33,7 +33,6 @@ #include "recvattach.h" #include "sort.h" -#include "lib/mem.h" #include "lib/intl.h" #include "lib/str.h" #include "lib/debug.h" @@ -554,7 +553,7 @@ static gpgme_key_t *create_recipient_set (const char *keylist, err = gpgme_get_key (context, buf, &key, 0); if (!err) { - mem_realloc (&rset, sizeof (*rset) * (rset_n + 1)); + p_realloc(&rset, rset_n + 1); rset[rset_n++] = key; } else { @@ -568,7 +567,7 @@ static gpgme_key_t *create_recipient_set (const char *keylist, } /* NULL terminate. */ - mem_realloc (&rset, sizeof (*rset) * (rset_n + 1)); + p_realloc(&rset, rset_n + 1); rset[rset_n++] = NULL; if (context) @@ -3259,7 +3258,7 @@ static crypt_key_t *crypt_select_key (crypt_key_t * keys, if (i == keymax) { keymax += 20; - mem_realloc (&key_table, sizeof (crypt_key_t *) * keymax); + p_realloc(&key_table, keymax); } key_table[i++] = k; @@ -3768,7 +3767,7 @@ static char *find_keys (ADDRESS * to, ADDRESS * cc, ADDRESS * bcc, #endif keylist_size += str_len (s) + 4 + 1; - mem_realloc (&keylist, keylist_size); + p_realloc(&keylist, keylist_size); sprintf (keylist + keylist_used, "%s0x%s%s", /* __SPRINTF_CHECKED__ */ keylist_used ? " " : "", s, forced_valid ? "!" : ""); }