SCCS-vsn: usr.sbin/sendmail/src/domain.c 6.12
#ifndef lint
#ifdef NAMED_BIND
#ifndef lint
#ifdef NAMED_BIND
-static char sccsid[] = "@(#)domain.c 6.11 (Berkeley) %G% (with name server)";
+static char sccsid[] = "@(#)domain.c 6.12 (Berkeley) %G% (with name server)";
-static char sccsid[] = "@(#)domain.c 6.11 (Berkeley) %G% (without name server)";
+static char sccsid[] = "@(#)domain.c 6.12 (Berkeley) %G% (without name server)";
#endif
#endif /* not lint */
#endif
#endif /* not lint */
-punt: mxhosts[0] = strcpy(hostbuf, host);
+punt:
+ mxhosts[0] = strcpy(hostbuf, host);
+ bp = &hostbuf[strlen(hostbuf)];
+ if (bp[-1] != '.')
+ {
+ *bp++ = '.';
+ *bp = '\0';
+ }