From: Steve Holme Date: Sun, 28 Apr 2013 11:20:51 +0000 (+0100) Subject: smtp: Updated limit check to be more readable like the check in pop3 X-Git-Tag: curl-7_31_0~92 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1d7c38e1f06710338db5f29e67d6dff668747aca;p=curl smtp: Updated limit check to be more readable like the check in pop3 --- 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 ... */ + 8 + strlen(mech) + len <= 512) { /* AUTH ... */ result = Curl_pp_sendf(&smtpc->pp, "AUTH %s %s", mech, initresp); if(!result)