pkgsrc/mail/metamail/patches/patch-ae

26 lines
881 B
Text
Raw Normal View History

$NetBSD: patch-ae,v 1.3 2004/02/25 03:58:43 snj Exp $
1998-08-07 13:08:53 +02:00
--- 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
#define VERBOSEDELIVERYCMD VerboseDeliveryCmd
#else
extern char *getenv();
-#define NORMALDELIVERYCMD "/usr/lib/sendmail -t -oi"
-#define VERBOSEDELIVERYCMD "/usr/lib/sendmail -t -v -oi"
+#define NORMALDELIVERYCMD "/usr/sbin/sendmail -t -oi"
+#define VERBOSEDELIVERYCMD "/usr/sbin/sendmail -t -v -oi"
#endif
usageexit() {
@@ -361,7 +361,8 @@ char **OrigID;
}
if (!ULstrcmp(s, "subject")) {
*colon = ':';
- strcpy(SubjectBuf, ++colon);
+ strncpy(SubjectBuf, ++colon, sizeof(SubjectBuf));
+ SubjectBuf[sizeof(SubjectBuf) - 1] = '\0';
return(0);
}
if (!ULstrcmp(s, "content-type")) {