diff options
author | Yang Tse <yangsita@gmail.com> | 2013-07-24 17:05:02 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2013-07-24 17:05:02 +0200 |
commit | ca89a0a092e715d90aa9884a253af1c7d61dc29d (patch) | |
tree | f3a232eecaf20b0d8b1d616c51ad40528ed92eda /lib/imap.c | |
parent | 50a74be12542b84a3edcebc2603cabb7ae2daa44 (diff) |
string formatting: fix zero-length printf format string
Diffstat (limited to 'lib/imap.c')
-rw-r--r-- | lib/imap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/imap.c b/lib/imap.c index ea175e6b9..5d758d455 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -1153,7 +1153,7 @@ static CURLcode imap_state_auth_digest_resp_resp(struct connectdata *conn, } else { /* Send an empty response */ - result = Curl_pp_sendf(&conn->proto.imapc.pp, ""); + result = Curl_pp_sendf(&conn->proto.imapc.pp, "%s", ""); if(!result) state(conn, IMAP_AUTHENTICATE_FINAL); @@ -1782,7 +1782,7 @@ static CURLcode imap_done(struct connectdata *conn, CURLcode status, state(conn, IMAP_FETCH_FINAL); else { /* End the APPEND command first by sending an empty line */ - result = Curl_pp_sendf(&conn->proto.imapc.pp, ""); + result = Curl_pp_sendf(&conn->proto.imapc.pp, "%s", ""); if(!result) state(conn, IMAP_APPEND_FINAL); } |