diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/metamail/Makefile | 4 | ||||
-rw-r--r-- | mail/metamail/distinfo | 4 | ||||
-rw-r--r-- | mail/metamail/patches/patch-ae | 35 |
3 files changed, 31 insertions, 12 deletions
diff --git a/mail/metamail/Makefile b/mail/metamail/Makefile index ff09fe961d6..0f2e2e8fdcc 100644 --- a/mail/metamail/Makefile +++ b/mail/metamail/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.25 2004/02/25 03:58:42 snj Exp $ +# $NetBSD: Makefile,v 1.26 2004/02/28 20:04:40 snj Exp $ DISTNAME= mm2.7 PKGNAME= metamail-2.7 -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= mail MASTER_SITES= ftp://thumper.bellcore.com/pub/nsb/ EXTRACT_SUFX= .tar.Z diff --git a/mail/metamail/distinfo b/mail/metamail/distinfo index 3b82420f75e..c1e2662ca51 100644 --- a/mail/metamail/distinfo +++ b/mail/metamail/distinfo @@ -1,11 +1,11 @@ -$NetBSD: distinfo,v 1.7 2004/02/25 03:58:42 snj Exp $ +$NetBSD: distinfo,v 1.8 2004/02/28 20:04:40 snj Exp $ SHA1 (mm2.7.tar.Z) = 8f213baec9b17c05bcb066f616977a561757d7a6 Size (mm2.7.tar.Z) = 262881 bytes SHA1 (patch-aa) = 5b03f920e11554af5f776ff352c85c06e2f8f8de SHA1 (patch-ab) = 7cd0a70de63ba86172b5628bb082fb46100262b9 SHA1 (patch-ad) = f5b8a3e04da86fb875ffe34b3f4cba5c7b4e4d94 -SHA1 (patch-ae) = 15bd1530e763c8c6371a0fa8dff45cdd39916295 +SHA1 (patch-ae) = 7abed3b508779f354036a3634510d4c68c3670a8 SHA1 (patch-af) = 9ba42f1eef27d452debb9c1e0abc800f19deccac SHA1 (patch-ag) = 674ceb59955de76e9a673ee4969d359a30fba5f8 SHA1 (patch-ah) = 0be03011df91c66f12836ce64eb37983f129e4c5 diff --git a/mail/metamail/patches/patch-ae b/mail/metamail/patches/patch-ae index c8eadd55e84..ec1094335d4 100644 --- a/mail/metamail/patches/patch-ae +++ b/mail/metamail/patches/patch-ae @@ -1,8 +1,6 @@ -$NetBSD: patch-ae,v 1.3 2004/02/25 03:58:43 snj Exp $ - ---- metamail/splitmail.c.orig 1994-01-31 14:23:14.000000000 -0800 -+++ metamail/splitmail.c 2004-02-24 10:49:02.000000000 -0800 -@@ -41,8 +41,8 @@ extern char *malloc(), *index(), *getmyn +--- metamail/splitmail.c.orig Mon Jan 31 23:23:14 1994 ++++ metamail/splitmail.c Sat Feb 28 20:08:44 2004 +@@ -41,8 +41,8 @@ #define VERBOSEDELIVERYCMD VerboseDeliveryCmd #else extern char *getenv(); @@ -13,13 +11,34 @@ $NetBSD: patch-ae,v 1.3 2004/02/25 03:58:43 snj Exp $ #endif usageexit() { -@@ -361,7 +361,8 @@ char **OrigID; +@@ -194,7 +194,7 @@ + s = endofheader(from); /* would be index(from, '\n'), + but need to check for continuation lines */ + *s = '\0'; +- if (ShareThisHeader(from, SubjectBuf, &OrigID)) { ++ if (ShareThisHeader(from, SubjectBuf, sizeof(SubjectBuf), &OrigID)) { + strcat(SharedHeaders, from); + strcat(SharedHeaders, "\n"); + } +@@ -339,9 +339,10 @@ + NULL + }; + +-ShareThisHeader(s, SubjectBuf, OrigID) ++ShareThisHeader(s, SubjectBuf, size, OrigID) + char *s; + char *SubjectBuf; ++size_t size; + char **OrigID; + { + int i; +@@ -361,7 +362,8 @@ } if (!ULstrcmp(s, "subject")) { *colon = ':'; - strcpy(SubjectBuf, ++colon); -+ strncpy(SubjectBuf, ++colon, sizeof(SubjectBuf)); -+ SubjectBuf[sizeof(SubjectBuf) - 1] = '\0'; ++ strncpy(SubjectBuf, ++colon, size); ++ SubjectBuf[size - 1] = '\0'; return(0); } if (!ULstrcmp(s, "content-type")) { |