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)
commitfbc0295f6d0b50482a8f636b5ceba244e195ecaa
treeae0d5dd01973fcb9d5210eb8cd5300af9b9931ab
parentb1bfb1b46722cd98cd9875511ea79fea0495164d
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