summaryrefslogtreecommitdiff
path: root/mail/metamail/patches/patch-ae
blob: c8eadd55e848306573899529cb8a5320f07df81b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$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
 #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")) {