diff options
author | Peter Pentchev <roam@FreeBSD.org> | 2003-08-29 16:04:41 +0000 |
---|---|---|
committer | Peter Pentchev <roam@FreeBSD.org> | 2003-08-29 16:04:41 +0000 |
commit | 0dcdd0d4ce9023d2b37a29bf4657ff3c76fe288a (patch) | |
tree | 7be5e44dcff6137eac4ffb2a269fa7cbce0f79ec /mail/autorespond/files/patch-autorespond.c | |
parent | - use hook for bsd.openssl.mk (diff) |
Fix an off-by-one error in strncpy(3) usage.
Unquote the comment variable.
PR: 55700
Submitted by: Alex Dupre <sysadmin@alexdupre.com>
Notes
Notes:
svn path=/head/; revision=87984
Diffstat (limited to '')
-rw-r--r-- | mail/autorespond/files/patch-autorespond.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/autorespond/files/patch-autorespond.c b/mail/autorespond/files/patch-autorespond.c new file mode 100644 index 000000000000..77c5b7745cef --- /dev/null +++ b/mail/autorespond/files/patch-autorespond.c @@ -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) ); + } |