summaryrefslogtreecommitdiff
path: root/gnu/libexec/uucp
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-07-09 06:05:46 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-07-09 06:05:46 +0000
commit994b1ce9ebd3057480ca15094c5861cb35773d31 (patch)
treea9395554730f5eaa8750d30149363824d94f536b /gnu/libexec/uucp
parentacb8738e52532b92c0090e32144e2595f9a3f08b (diff)
use MAXHOSTNAMELEN
Diffstat (limited to 'gnu/libexec/uucp')
-rw-r--r--gnu/libexec/uucp/libunix/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/libexec/uucp/libunix/init.c b/gnu/libexec/uucp/libunix/init.c
index a4fe66ea4c7..6a1a944a46b 100644
--- a/gnu/libexec/uucp/libunix/init.c
+++ b/gnu/libexec/uucp/libunix/init.c
@@ -210,7 +210,7 @@ usysdep_initialize (puuconf,iflags)
if (iuuconf == UUCONF_NOT_FOUND)
{
#if HAVE_GETHOSTNAME
- char ab[256];
+ char ab[MAXHOSTNAMELEN];
if (gethostname (ab, sizeof ab - 1) < 0)
ulog (LOG_FATAL, "gethostname: %s", strerror (errno));