Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/sendmail/sendmail save 1 byte for trailing dot appe...



details:   https://anonhg.NetBSD.org/src/rev/c14596fea598
branches:  trunk
changeset: 533575:c14596fea598
user:      itojun <itojun%NetBSD.org@localhost>
date:      Thu Jul 04 13:27:23 2002 +0000

description:
save 1 byte for trailing dot append on dn_expand() call

diffstat:

 gnu/dist/sendmail/sendmail/domain.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r b5a8ebc245d9 -r c14596fea598 gnu/dist/sendmail/sendmail/domain.c
--- a/gnu/dist/sendmail/sendmail/domain.c       Thu Jul 04 12:35:19 2002 +0000
+++ b/gnu/dist/sendmail/sendmail/domain.c       Thu Jul 04 13:27:23 2002 +0000
@@ -236,7 +236,7 @@
                        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)
        {



Home | Main Index | Thread Index | Old Index