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
[-- Attachment #1 --] 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 [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjogpE8ACgkQWry0BWjoQKUrdgCgyGOEEFAVcTM7GgIefp4RtWtQ 7BcAoIoZx0PwVYiDmrlAOVc/qbPe2BGq =b4ZX -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001125214903.A14677>
