X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_libesmtp.c;h=26f424c12fa63bcf2f4c1477eb10a00cc8befb86;hp=23b69f918f413f646fe8e5e182c6ef728f1d1e7c;hb=841934011451205d8295ac955486f06c317fdf15;hpb=01a3f4d932ddfc7f4a58f820d343f4a6f3b0f824 diff --git a/mutt_libesmtp.c b/mutt_libesmtp.c index 23b69f9..26f424c 100644 --- a/mutt_libesmtp.c +++ b/mutt_libesmtp.c @@ -179,7 +179,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 = strlen (SmtpHost) + 7; + hostportlen = mutt_strlen (SmtpHost) + 7; hostportstr = safe_malloc (hostportlen); snprintf (hostportstr, hostportlen, "%s:%d", SmtpHost, SmtpPort); if (!smtp_set_server (session, hostportstr))