X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_libesmtp.c;h=a9c2151ee47496a9c10a23079a5c13ef65b11247;hp=a8eb110322fba8fcd169d66511b989b72a786865;hb=03ecb7c70bd09a8302212ed3e7f94f9a7b14d099;hpb=df70e07e24add1869bcc9b7af2277d9d0c09a281 diff --git a/mutt_libesmtp.c b/mutt_libesmtp.c index a8eb110..a9c2151 100644 --- a/mutt_libesmtp.c +++ b/mutt_libesmtp.c @@ -1,4 +1,21 @@ +/* + * Copyright notice from original mutt: + * [none] + * + * This file is part of mutt-ng, see http://www.muttng.org/. + * It's licensed under the GNU General Public License, + * please see the file GPL in the top level source directory. + */ +#if HAVE_CONFIG_H +#include "config.h" +#endif + #include "mutt.h" + +#include "lib/mem.h" +#include "lib/intl.h" +#include "lib/str.h" + #include #include #include @@ -170,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 = 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))