Date: Sat, 25 Nov 2000 21:49:03 -0800 From: Kris Kennaway <kris@FreeBSD.org> To: audit@FreeBSD.org Subject: MAXHOSTNAMELEN Message-ID: <20001125214903.A14677@citusc17.usc.edu>
next in thread | raw e-mail | index | archive | help
--ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Just wanted to check something..MAXHOSTNAMELEN is defined to be 256, which is long enough to store the maximum possible DNS name (255 octets) plus the terminating NULL. So there's no need to declare arrays to be MAXHOSTNAMELEN+1 in size, right? I'm seeing great inconsistency within our source tree, and I bumped across this in some changes I was porting from NetBSD. Kris --ZPt4rx8FFjLCG7dd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjogpE8ACgkQWry0BWjoQKUrdgCgyGOEEFAVcTM7GgIefp4RtWtQ 7BcAoIoZx0PwVYiDmrlAOVc/qbPe2BGq =b4ZX -----END PGP SIGNATURE----- --ZPt4rx8FFjLCG7dd-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001125214903.A14677>