change buffer size for gethostname() to HOST_NAME_MAX to avoid accidently truncating...
authorkremlin <ian@kremlin.cc>
Sun, 22 Jun 2014 06:11:25 +0000 (01:11 -0500)
committerkremlin <ian@kremlin.cc>
Sun, 22 Jun 2014 06:11:25 +0000 (01:11 -0500)
commit1cd5e6fecdb03d2a3611f72fdc6021cbdf998afc
treeae0d5dd01973fcb9d5210eb8cd5300af9b9931ab
parentfc45cad95837cd38432b6ab73c27b22ac28ee23d
change buffer size for gethostname() to HOST_NAME_MAX to avoid accidently truncating the terminating byte on systems that handle gethostname() poorly
src/config.c
src/interfaces/hostnamed/hostnamed.c
src/main.c
src/main.h