#include "rfc2047.h"
#include "rfc2231.h"
-#include "lib/mem.h"
-
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
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)
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;