X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=copy.c;h=19b3d8ce3b3d89fe81cf69b2d93041dd4fd66b07;hp=d312d468b080be2fcf48b7e94e9d0e3ab6725e3e;hb=b3cb6ed8d36c550a2e589910ce51bbc8352ff57c;hpb=8e037c67a88cb4680c4391134c578e3b55a80f8a diff --git a/copy.c b/copy.c index d312d46..19b3d8c 100644 --- a/copy.c +++ b/copy.c @@ -128,7 +128,7 @@ mutt_copy_hdr (FILE* in, FILE* out, off_t off_start, off_t off_end, debug_print (1, ("WEED is %s\n", (flags & CH_WEED) ? "Set" : "Not")); - headers = mem_calloc (hdr_count, sizeof (char *)); + headers = p_new(char *, hdr_count); /* Read all the headers into the array */ while (ftello (in) < off_end) { @@ -938,9 +938,7 @@ static int address_header_decode (char **h) mutt_addrlist_to_local (a); rfc2047_decode_adrlist (a); - *h = mem_calloc (1, l + 2); - - strfcpy (*h, s, l + 1); + *h = p_dupstr(s, l + 1); format_address_header (h, a);