Fix an off-by-one error in strncpy(3) usage.
Unquote the comment variable. PR: 55700 Submitted by: Alex Dupre <sysadmin@alexdupre.com>
This commit is contained in:
parent
fd47489751
commit
0dcdd0d4ce
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=87984
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= autorespond
|
||||
PORTVERSION= 2.0.3
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= http://www.inter7.com/devel/
|
||||
|
||||
@ -14,7 +15,7 @@ PATCH_SITES= http://people.FreeBSD.org/~roam/ports/patches/mail/
|
||||
PATCHFILES= ${DISTNAME}-conf-strcasestr.patch
|
||||
|
||||
MAINTAINER= roam@FreeBSD.org
|
||||
COMMENT= "Simple autoresponder for qmail"
|
||||
COMMENT= Simple autoresponder for qmail
|
||||
|
||||
post-patch:
|
||||
${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
|
||||
|
11
mail/autorespond/files/patch-autorespond.c
Normal file
11
mail/autorespond/files/patch-autorespond.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- autorespond.c.orig Mon Aug 18 14:41:33 2003
|
||||
+++ autorespond.c Mon Aug 18 14:42:14 2003
|
||||
@@ -572,7 +572,7 @@
|
||||
if ( *rpath == '$' )
|
||||
{
|
||||
rpath = safe_malloc( strlen(TheUser) + strlen(TheDomain) + 2);
|
||||
- strncpy( rpath, TheUser, strlen(TheUser) );
|
||||
+ strncpy( rpath, TheUser, strlen(TheUser) + 1 );
|
||||
strncat( rpath, "@", 1 );
|
||||
strncat( rpath, TheDomain, strlen(TheDomain) );
|
||||
}
|
Loading…
Reference in New Issue
Block a user