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/pop3.c | |
parent | 50a74be12542b84a3edcebc2603cabb7ae2daa44 (diff) |
string formatting: fix zero-length printf format string
Diffstat (limited to 'lib/pop3.c')
-rw-r--r-- | lib/pop3.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/pop3.c b/lib/pop3.c index 0099a509b..57d40afdb 100644 --- a/lib/pop3.c +++ b/lib/pop3.c @@ -405,7 +405,7 @@ static CURLcode pop3_perform_capa(struct connectdata *conn) pop3c->tls_supported = FALSE; /* Clear the TLS capability */ /* Send the CAPA command */ - result = Curl_pp_sendf(&pop3c->pp, "CAPA"); + result = Curl_pp_sendf(&pop3c->pp, "%s", "CAPA"); if(!result) state(conn, POP3_CAPA); @@ -424,7 +424,7 @@ static CURLcode pop3_perform_starttls(struct connectdata *conn) CURLcode result = CURLE_OK; /* Send the STLS command */ - result = Curl_pp_sendf(&conn->proto.pop3c.pp, "STLS"); + result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", "STLS"); if(!result) state(conn, POP3_STARTTLS); @@ -693,7 +693,7 @@ static CURLcode pop3_perform_command(struct connectdata *conn) (pop3->custom && pop3->custom[0] != '\0' ? pop3->custom : command), pop3->id); else - result = Curl_pp_sendf(&conn->proto.pop3c.pp, + result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", (pop3->custom && pop3->custom[0] != '\0' ? pop3->custom : command)); @@ -714,7 +714,7 @@ static CURLcode pop3_perform_quit(struct connectdata *conn) CURLcode result = CURLE_OK; /* Send the QUIT command */ - result = Curl_pp_sendf(&conn->proto.pop3c.pp, "QUIT"); + result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", "QUIT"); if(!result) state(conn, POP3_QUIT); @@ -1020,7 +1020,7 @@ static CURLcode pop3_state_auth_digest_resp_resp(struct connectdata *conn, } else { /* Send an empty response */ - result = Curl_pp_sendf(&conn->proto.pop3c.pp, ""); + result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", ""); if(!result) state(conn, POP3_AUTH_FINAL); |