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/smtp.c | |
parent | 50a74be12542b84a3edcebc2603cabb7ae2daa44 (diff) | |
download | curl-ca89a0a092e715d90aa9884a253af1c7d61dc29d.tar.gz |
string formatting: fix zero-length printf format string
Diffstat (limited to 'lib/smtp.c')
-rw-r--r-- | lib/smtp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/smtp.c b/lib/smtp.c index 04b33d0c4..8bb72aab4 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -403,7 +403,7 @@ static CURLcode smtp_perform_starttls(struct connectdata *conn) CURLcode result = CURLE_OK; /* Send the STARTTLS command */ - result = Curl_pp_sendf(&conn->proto.smtpc.pp, "STARTTLS"); + result = Curl_pp_sendf(&conn->proto.smtpc.pp, "%s", "STARTTLS"); if(!result) state(conn, SMTP_STARTTLS); @@ -664,7 +664,7 @@ static CURLcode smtp_perform_quit(struct connectdata *conn) CURLcode result = CURLE_OK; /* Send the QUIT command */ - result = Curl_pp_sendf(&conn->proto.smtpc.pp, "QUIT"); + result = Curl_pp_sendf(&conn->proto.smtpc.pp, "%s", "QUIT"); if(!result) state(conn, SMTP_QUIT); @@ -997,7 +997,7 @@ static CURLcode smtp_state_auth_digest_resp_resp(struct connectdata *conn, } else { /* Send an empty response */ - result = Curl_pp_sendf(&conn->proto.smtpc.pp, ""); + result = Curl_pp_sendf(&conn->proto.smtpc.pp, "%s", ""); if(!result) state(conn, SMTP_AUTH_FINAL); @@ -1159,7 +1159,7 @@ static CURLcode smtp_state_rcpt_resp(struct connectdata *conn, int smtpcode, } /* Send the DATA command */ - result = Curl_pp_sendf(&conn->proto.smtpc.pp, "DATA"); + result = Curl_pp_sendf(&conn->proto.smtpc.pp, "%s", "DATA"); if(!result) state(conn, SMTP_DATA); |