From 0e61002d04e343a2cf1763fb32e27bef65ce1073 Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Sat, 25 Aug 2001 10:14:13 +0000 Subject: Add smtpclient-1.0.0 This program is a minimal SMTP client that takes an email message body and passes it on to a SMTP server (default is the MTA on the local host). Since it is completely self-supporting, it is especially suitable for use in restricted environments. Obtained from: OpenBSD --- mail/smtpclient/files/patch-smtpclient_errno_c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 mail/smtpclient/files/patch-smtpclient_errno_c (limited to 'mail/smtpclient/files/patch-smtpclient_errno_c') diff --git a/mail/smtpclient/files/patch-smtpclient_errno_c b/mail/smtpclient/files/patch-smtpclient_errno_c new file mode 100644 index 000000000000..75593f94b9eb --- /dev/null +++ b/mail/smtpclient/files/patch-smtpclient_errno_c @@ -0,0 +1,11 @@ +--- smtpclient_errno.c.orig Wed Aug 1 15:09:39 2001 ++++ smtpclient_errno.c Wed Aug 1 15:11:36 2001 +@@ -91,7 +91,7 @@ char *errorstr(int errnum) + #else + static char buffer[50]; + if (errnum < 0 || errnum >= sys_nerr) { +- sprintf(buffer, "ERR-UNKNOWN (%d)", errnum); ++ snprintf(buffer, (sizeof(buffer) - 1), "ERR-UNKNOWN (%d)", errnum); + return(buffer); + } + return(sys_errlist[errnum]); -- cgit v1.2.3