summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjcs <jcs@openbsd.org>2015-11-25 23:16:01 +0000
committerjcs <jcs@openbsd.org>2015-11-25 23:16:01 +0000
commit116adadb892182deb90646850353b3db979f7a92 (patch)
treec08f2744f27b0b6d99d3b80782c533eeff404535 /lib/libc
parenttypo: should be looking pid == -1 (diff)
downloadwireguard-openbsd-116adadb892182deb90646850353b3db979f7a92.tar.xz
wireguard-openbsd-116adadb892182deb90646850353b3db979f7a92.zip
group_from_gid: use _GR_BUF_LEN instead of _PW_BUF_LEN
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/pwcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/pwcache.c b/lib/libc/gen/pwcache.c
index f5cfea5c20f..743cad45664 100644
--- a/lib/libc/gen/pwcache.c
+++ b/lib/libc/gen/pwcache.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pwcache.c,v 1.12 2015/11/24 22:03:33 millert Exp $ */
+/* $OpenBSD: pwcache.c,v 1.13 2015/11/25 23:16:01 jcs Exp $ */
/*
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
@@ -93,7 +93,7 @@ group_from_gid(gid_t gid, int nogroup)
short noname;
char name[_PW_NAME_LEN + 1];
} c_gid[NLINES * NCACHE];
- char grbuf[_PW_BUF_LEN];
+ char grbuf[_GR_BUF_LEN];
struct group grstore, *gr;
struct ncache *cp;
unsigned int i;