From 1d7c38e1f06710338db5f29e67d6dff668747aca Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sun, 28 Apr 2013 12:20:51 +0100 Subject: smtp: Updated limit check to be more readable like the check in pop3 --- lib/smtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/smtp.c') 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) -- cgit v1.2.3