X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=rfc1524.c;h=5b70e5a0cd35e93c79f0eefdbb58a984316e6679;hp=c0397ad0968d26c5a6c81bc37bc47cdb14203c42;hb=9e6ab0152703ad301042ce8810859f41fbee405a;hpb=8e037c67a88cb4680c4391134c578e3b55a80f8a diff --git a/rfc1524.c b/rfc1524.c index c0397ad..5b70e5a 100644 --- a/rfc1524.c +++ b/rfc1524.c @@ -28,7 +28,6 @@ #include "rfc1524.h" #include "attach.h" -#include "lib/mem.h" #include "lib/intl.h" #include "lib/str.h" #include "lib/debug.h" @@ -270,7 +269,7 @@ static int rfc1524_mailcap_parse (BODY * a, if (get_field_text (field + 4, &test_command, type, filename, line) && test_command) { len = str_len (test_command) + STRING; - mem_realloc (&test_command, len); + p_realloc(&test_command, len); rfc1524_expand_command (a, a->filename, type, test_command, len); if (mutt_system (test_command)) { /* a non-zero exit code means test failed */ @@ -321,7 +320,7 @@ static int rfc1524_mailcap_parse (BODY * a, rfc1524_entry *rfc1524_new_entry (void) { - return (rfc1524_entry *) mem_calloc (1, sizeof (rfc1524_entry)); + return p_new(rfc1524_entry, 1); } void rfc1524_free_entry (rfc1524_entry ** entry)