]> granicus.if.org Git - sudo/commit
Use MAXHOSTNAMELEN+1 when allocating host/domain name since some
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 29 Oct 2008 17:26:42 +0000 (17:26 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 29 Oct 2008 17:26:42 +0000 (17:26 +0000)
commitefb510a9dc15bca8652cab5c7f7f257d424c462c
treebfa7825d47d9ec439fa008c868e51caad30389c8
parent9b5e94cef92cab8413389baa17c91b2295bfdb0b
Use MAXHOSTNAMELEN+1 when allocating host/domain name since some
systems do not include space for the NUL in the size.  Also manually
NUL-terminate buffer from gethostname() since POSIX is wishy-washy on this.
match.c
sudo.c
testsudoers.c