diff options
author | Michael Elkins <me@sigpipe.org> | 2010-08-09 20:48:26 -0700 |
---|---|---|
committer | Michael Elkins <me@sigpipe.org> | 2010-08-09 20:48:26 -0700 |
commit | 9ffe42284399f9bb92adaf99b828b73fd6d3c920 (patch) | |
tree | fd6fc9a1a291ed3e9ccaccd653492399eeafea07 /imap/message.c | |
parent | c0130eb8965744b6619d116ad0f67e871d779098 (diff) |
rename mutt_sprintf() to safe_asprintf() to match the GNU extension that performs a similar task
Diffstat (limited to 'imap/message.c')
-rw-r--r-- | imap/message.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/imap/message.c b/imap/message.c index 1f0f3c02..e3cb0ac2 100644 --- a/imap/message.c +++ b/imap/message.c @@ -86,12 +86,12 @@ int imap_read_headers (IMAP_DATA* idata, int msgbegin, int msgend) if (mutt_bit_isset (idata->capabilities,IMAP4REV1)) { - hdrreq = mutt_sprintf ("BODY.PEEK[HEADER.FIELDS (%s%s%s)]", + safe_asprintf (&hdrreq, "BODY.PEEK[HEADER.FIELDS (%s%s%s)]", want_headers, ImapHeaders ? " " : "", NONULL (ImapHeaders)); } else if (mutt_bit_isset (idata->capabilities,IMAP4)) { - hdrreq = mutt_sprintf ("RFC822.HEADER.LINES (%s%s%s)", + safe_asprintf (&hdrreq, "RFC822.HEADER.LINES (%s%s%s)", want_headers, ImapHeaders ? " " : "", NONULL (ImapHeaders)); } else @@ -242,8 +242,8 @@ int imap_read_headers (IMAP_DATA* idata, int msgbegin, int msgend) char *cmd; fetchlast = msgend + 1; - cmd = mutt_sprintf ("FETCH %d:%d (UID FLAGS INTERNALDATE RFC822.SIZE %s)", - msgno + 1, fetchlast, hdrreq); + safe_asprintf (&cmd, "FETCH %d:%d (UID FLAGS INTERNALDATE RFC822.SIZE %s)", + msgno + 1, fetchlast, hdrreq); imap_cmd_start (idata, cmd); FREE (&cmd); } |