summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortgoodwin <tgoodwin>1997-09-15 12:40:01 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:01 +0100
commitb07426171c15c2399bb1e41c9000fbac6e5d0d49 (patch)
tree196f7c767bcf273c66155d2369493eca78877e68
parented2dea21e2615a249edc6c7aa9cb14df50ee699d (diff)
s/gid_t/GETGROUPS_T/ in gidset malloc
-rw-r--r--which.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/which.c b/which.c
index 372cc92..90d7951 100644
--- a/which.c
+++ b/which.c
@@ -88,7 +88,7 @@ extern char *which(char *name, bool verbose) {
gid = getegid();
#if HAVE_GETGROUPS
ngroups = getgroups(0, (gid_t *)0);
- gidset = malloc(ngroups * sizeof(gid_t));
+ gidset = malloc(ngroups * sizeof(GETGROUPS_T));
if (!gidset)
uerror("malloc");
else