X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=imap%2Fmessage.c;h=4781a361d0fa99195ba4ef6c5e56f40867f75aa3;hb=49f1156410e9a037404101696d37b2c0d5c67564;hp=dcfe4cae649fb08b10289615d347bd66971af487;hpb=8e037c67a88cb4680c4391134c578e3b55a80f8a;p=apps%2Fmadmutt.git diff --git a/imap/message.c b/imap/message.c index dcfe4ca..4781a36 100644 --- a/imap/message.c +++ b/imap/message.c @@ -133,7 +133,7 @@ int imap_read_headers (IMAP_DATA * idata, int msgbegin, int msgend) rewind (fp); memset (&h, 0, sizeof (h)); - h.data = mem_calloc (1, sizeof (IMAP_HEADER_DATA)); + h.data = p_new(IMAP_HEADER_DATA, 1); do { mfhrc = 0; @@ -224,7 +224,7 @@ int imap_read_headers (IMAP_DATA * idata, int msgbegin, int msgend) /* freshen fp, h */ rewind (fp); memset (&h, 0, sizeof (h)); - h.data = mem_calloc (1, sizeof (IMAP_HEADER_DATA)); + h.data = p_new(IMAP_HEADER_DATA, 1); /* this DO loop does two things: * 1. handles untagged messages, so we can try again on the same msg @@ -796,7 +796,7 @@ char *imap_set_flags (IMAP_DATA * idata, HEADER * h, char *s) unsigned char readonly; memset (&newh, 0, sizeof (newh)); - newh.data = mem_calloc (1, sizeof (IMAP_HEADER_DATA)); + newh.data = p_new(IMAP_HEADER_DATA, 1); debug_print (2, ("parsing FLAGS\n")); if ((s = msg_parse_flags (&newh, s)) == NULL) {