X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=rfc2231.c;h=778995b48cf62ae0e833aa684d3d9a8c751b6e8f;hp=04f9515c6039dfbf6bf521966c2dcab6015b0d37;hb=1dc7032b59cc5b91d70076ed228bda8caf65a7f3;hpb=8e037c67a88cb4680c4391134c578e3b55a80f8a diff --git a/rfc2231.c b/rfc2231.c index 04f9515..778995b 100644 --- a/rfc2231.c +++ b/rfc2231.c @@ -31,8 +31,6 @@ #include "rfc2047.h" #include "rfc2231.h" -#include "lib/mem.h" - #include #include #include @@ -167,7 +165,7 @@ void rfc2231_decode_parameters (PARAMETER ** headp) static struct rfc2231_parameter *rfc2231_new_parameter (void) { - return mem_calloc (sizeof (struct rfc2231_parameter), 1); + return p_new(struct rfc2231_parameter, 1); } static void rfc2231_free_parameter (struct rfc2231_parameter **p) @@ -274,7 +272,7 @@ static void rfc2231_join_continuations (PARAMETER ** head, vl = str_len (par->value); - mem_realloc (&value, l + vl + 1); + p_realloc(&value, l + vl + 1); strcpy (value + l, par->value); /* __STRCPY_CHECKED__ */ l += vl;