X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_libesmtp.c;h=93bfd96de60003353f556f4fc5daa257cd5c4a38;hp=fd2a05a4ec741dc8bbde1abe756ae06205eaf5bf;hb=5945a5016adb82ec9a29c9f7741cea269484e608;hpb=96d53ff49c308769efbf708e1e65819077cb7af6 diff --git a/mutt_libesmtp.c b/mutt_libesmtp.c index fd2a05a..93bfd96 100644 --- a/mutt_libesmtp.c +++ b/mutt_libesmtp.c @@ -187,8 +187,8 @@ 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; - hostportstr = safe_malloc (hostportlen); + hostportlen = str_len (SmtpHost) + 7; + hostportstr = mem_malloc (hostportlen); snprintf (hostportstr, hostportlen, "%s:%d", SmtpHost, SmtpPort); if (!smtp_set_server (session, hostportstr)) SMTPFAIL ("smtp_set_server");