summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/auth_unix.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1998-07-09 06:11:56 +0000
committerderaadt <deraadt@openbsd.org>1998-07-09 06:11:56 +0000
commit48d75ea4de6d826490a11427ecaf861a07783bf3 (patch)
tree8826586ef18dcb492da60919de975b06ce418dc2 /lib/libc/rpc/auth_unix.c
parentuse MAXHOSTNAMELEN (diff)
downloadwireguard-openbsd-48d75ea4de6d826490a11427ecaf861a07783bf3.tar.xz
wireguard-openbsd-48d75ea4de6d826490a11427ecaf861a07783bf3.zip
clarify gethostname() call
Diffstat (limited to 'lib/libc/rpc/auth_unix.c')
-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();