projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
059647f
)
imap: Added some missing comments to imap_sendf()
author
Steve Holme
<steve_holme@hotmail.com>
Sun, 10 Mar 2013 12:47:28 +0000
(12:47 +0000)
committer
Steve Holme
<steve_holme@hotmail.com>
Sun, 10 Mar 2013 12:47:28 +0000
(12:47 +0000)
lib/imap.c
patch
|
blob
|
history
diff --git
a/lib/imap.c
b/lib/imap.c
index 668ef9f7b24105749710219d94a7e19b38571960..803c6536633193c914de5a24ee8ddf8aae365efb 100644
(file)
--- a/
lib/imap.c
+++ b/
lib/imap.c
@@
-236,10
+236,12
@@
static CURLcode imap_sendf(struct connectdata *conn, const char *fmt, ...)
snprintf(imapc->resptag, sizeof(imapc->resptag), "%c%03d",
'A' + (conn->connection_id % 26), imapc->cmdid);
+ /* Prefix the format with the tag */
taggedfmt = aprintf("%s %s", imapc->resptag, fmt);
if(!taggedfmt)
return CURLE_OUT_OF_MEMORY;
+ /* Send the data with the tag */
result = Curl_pp_vsendf(&imapc->pp, taggedfmt, ap);
Curl_safefree(taggedfmt);