pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/metamail Properly fix last. From Christian Weisg...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cb713f975ede
branches:  trunk
changeset: 469770:cb713f975ede
user:      snj <snj%pkgsrc.org@localhost>
date:      Sat Feb 28 20:04:40 2004 +0000

description:
Properly fix last.  From Christian Weisgerber.

diffstat:

 mail/metamail/Makefile         |   4 ++--
 mail/metamail/distinfo         |   4 ++--
 mail/metamail/patches/patch-ae |  35 +++++++++++++++++++++++++++--------
 3 files changed, 31 insertions(+), 12 deletions(-)

diffs (84 lines):

diff -r 98ed3555e2e0 -r cb713f975ede mail/metamail/Makefile
--- a/mail/metamail/Makefile    Sat Feb 28 19:52:53 2004 +0000
+++ b/mail/metamail/Makefile    Sat Feb 28 20:04:40 2004 +0000
@@ -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 -r 98ed3555e2e0 -r cb713f975ede mail/metamail/distinfo
--- a/mail/metamail/distinfo    Sat Feb 28 19:52:53 2004 +0000
+++ b/mail/metamail/distinfo    Sat Feb 28 20:04:40 2004 +0000
@@ -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 -r 98ed3555e2e0 -r cb713f975ede mail/metamail/patches/patch-ae
--- a/mail/metamail/patches/patch-ae    Sat Feb 28 19:52:53 2004 +0000
+++ b/mail/metamail/patches/patch-ae    Sat Feb 28 20:04:40 2004 +0000
@@ -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 @@
  #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")) {



Home | Main Index | Thread Index | Old Index