X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_libesmtp.c;h=a9c2151ee47496a9c10a23079a5c13ef65b11247;hp=fd2a05a4ec741dc8bbde1abe756ae06205eaf5bf;hb=42a4f6bf2d89d9c898c3fbdd849815b79130d631;hpb=74a2265af51ce89bca845adc1d68f273c9933c13 diff --git a/mutt_libesmtp.c b/mutt_libesmtp.c index fd2a05a..a9c2151 100644 --- a/mutt_libesmtp.c +++ b/mutt_libesmtp.c @@ -187,7 +187,7 @@ int mutt_invoke_libesmtp (ADDRESS * from, /* the sender */ /* Create hostname:port string and tell libesmtp */ /* len = SmtpHost len + colon + max port (65536 => 5 chars) + terminator */ - hostportlen = mutt_strlen (SmtpHost) + 7; + hostportlen = safe_strlen (SmtpHost) + 7; hostportstr = safe_malloc (hostportlen); snprintf (hostportstr, hostportlen, "%s:%d", SmtpHost, SmtpPort); if (!smtp_set_server (session, hostportstr))