From 76572f37fdc4ba2911a293fc2569c1973c60cb92 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 9 Jul 1998 06:11:57 +0000 Subject: clarify gethostname() call --- lib/libc/rpc/auth_unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libc/rpc/auth_unix.c b/lib/libc/rpc/auth_unix.c index e0ba5229aae..7b79976052a 100644 --- a/lib/libc/rpc/auth_unix.c +++ b/lib/libc/rpc/auth_unix.c @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: auth_unix.c,v 1.9 1997/11/08 20:51:23 deraadt Exp $"; +static char *rcsid = "$OpenBSD: auth_unix.c,v 1.10 1998/07/09 06:11:56 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -177,7 +177,7 @@ authunix_create_default() gid_t gids[NGRPS]; int gids2[NGRPS]; - if (gethostname(machname, MAX_MACHINE_NAME) == -1) + if (gethostname(machname, sizeof machname) == -1) return (NULL); machname[MAX_MACHINE_NAME] = 0; uid = geteuid(); -- cgit v1.2.3