diff options
| author | itojun <itojun@NetBSD.org> | 2002-07-04 13:27:23 +0000 |
|---|---|---|
| committer | itojun <itojun@NetBSD.org> | 2002-07-04 13:27:23 +0000 |
| commit | 27c67ca9bc844187415625b1088a9a20112b6593 (patch) | |
| tree | 10b15a54578bf8c6ee0e1250ce33aa18d694be96 /gnu | |
| parent | 181c9736b9d179b99c4b297cb8513d855437bf52 (diff) | |
save 1 byte for trailing dot append on dn_expand() call
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/dist/sendmail/sendmail/domain.c | 2 |
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) { |
