aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-04-28 12:20:51 +0100
committerSteve Holme <steve_holme@hotmail.com>2013-04-28 12:26:44 +0100
commit1d7c38e1f06710338db5f29e67d6dff668747aca (patch)
tree4ce45e189624564d577872d9f40a141ce6aabd0b /lib
parent18bfc8f2d7bb707c65065760d2dd134e5cf110ff (diff)
smtp: Updated limit check to be more readable like the check in pop3
Diffstat (limited to 'lib')
-rw-r--r--lib/smtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/smtp.c b/lib/smtp.c
index 3e8441953..72b3bbf6a 100644
--- a/lib/smtp.c
+++ b/lib/smtp.c
@@ -527,7 +527,7 @@ static CURLcode smtp_perform_authenticate(struct connectdata *conn)
if(!result) {
/* Perform SASL based authentication */
if(initresp &&
- strlen(mech) + len <= 512 - 8) { /* AUTH <mech> ...<crlf> */
+ 8 + strlen(mech) + len <= 512) { /* AUTH <mech> ...<crlf> */
result = Curl_pp_sendf(&smtpc->pp, "AUTH %s %s", mech, initresp);
if(!result)