summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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