diff options
Diffstat (limited to 'mail/exim3/patches/patch-ag')
-rw-r--r-- | mail/exim3/patches/patch-ag | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/mail/exim3/patches/patch-ag b/mail/exim3/patches/patch-ag index 612bc23f157..b5a1db9670f 100644 --- a/mail/exim3/patches/patch-ag +++ b/mail/exim3/patches/patch-ag @@ -1,13 +1,22 @@ -$NetBSD: patch-ag,v 1.1 2004/01/15 02:05:10 grant Exp $ +$NetBSD: patch-ag,v 1.2 2004/05/07 17:47:32 abs Exp $ ---- OS/os.h-Darwin.orig 2002-04-04 22:56:14.000000000 +1000 -+++ OS/os.h-Darwin -@@ -1,6 +1,8 @@ - /* Exim: OS-specific C header file for Darwin (Mac OS X) */ - -+/* Darwin 6.8 does not have crypt.h - #define CRYPT_H -+*/ - #define HAVE_MMAP - #define HAVE_SYS_MOUNT_H - #define SIOCGIFCONF_GIVES_ADDR +--- src/verify.c.orig Thu Apr 4 13:56:21 2002 ++++ src/verify.c +@@ -892,7 +892,7 @@ if (!sender_verify_reject || (rc == DEFE + /* Set up the key for the reject hints database, and attempt to open it. + If successful, read the record. */ + +-sprintf(buffer, "%s:%.200s", sender_address, ++snprintf(buffer, sizeof(buffer), "%s:%.200s", sender_address, + (sender_host_name != NULL)? sender_host_name : + (sender_host_address != NULL)? sender_host_address : ""); + +@@ -1182,7 +1182,7 @@ if (sender_verify_callback_error != NULL + O_WRONLY) is needed by Berkeley native DB even when reading only. If the + database won't open, we can do no more. */ + +-sprintf(buffer, "%s:%.200s", sender_address, ++snprintf(buffer, sizeof(buffer), "%s:%.200s", sender_address, + (sender_host_name != NULL)? sender_host_name : + (sender_host_address != NULL)? sender_host_address : ""); + |