summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authoritojun <itojun@NetBSD.org>2002-07-04 13:27:23 +0000
committeritojun <itojun@NetBSD.org>2002-07-04 13:27:23 +0000
commit27c67ca9bc844187415625b1088a9a20112b6593 (patch)
tree10b15a54578bf8c6ee0e1250ce33aa18d694be96 /gnu
parent181c9736b9d179b99c4b297cb8513d855437bf52 (diff)
save 1 byte for trailing dot append on dn_expand() call
Diffstat (limited to 'gnu')
-rw-r--r--gnu/dist/sendmail/sendmail/domain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/dist/sendmail/sendmail/domain.c b/gnu/dist/sendmail/sendmail/domain.c
index 576bccbd116..1ec275e4a8f 100644
--- a/gnu/dist/sendmail/sendmail/domain.c
+++ b/gnu/dist/sendmail/sendmail/domain.c
@@ -236,7 +236,7 @@ getmxrr(host, mxhosts, mxprefs, droplocalhost, rcode)
goto punt;
}
bp = MXHostBuf;
- ep = MXHostBuf + sizeof(MXHostBuf);
+ ep = MXHostBuf + sizeof(MXHostBuf) - 1; /* save one for trailing dot */
ancount = ntohs((u_short)hp->ancount);
while (--ancount >= 0 && cp < eom && nmx < MAXMXHOSTS - 1)
{