summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-07-09 06:11:57 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-07-09 06:11:57 +0000
commit76572f37fdc4ba2911a293fc2569c1973c60cb92 (patch)
tree7bb88ac931eb1f6cb8d2cef94139d6f3caa6c827
parent994b1ce9ebd3057480ca15094c5861cb35773d31 (diff)
clarify gethostname() call
-rw-r--r--lib/libc/rpc/auth_unix.c4
1 files 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();