aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manual/users.texi2
1 files changed, 1 insertions, 1 deletions
diff --git a/manual/users.texi b/manual/users.texi
index c35e8b6a5b..9b5e1ce9b5 100644
--- a/manual/users.texi
+++ b/manual/users.texi
@@ -246,7 +246,7 @@ IDs:
gid_t *
read_all_groups (void)
@{
- int ngroups = getgroups (NULL, 0);
+ int ngroups = getgroups (0, NULL);
gid_t *groups
= (gid_t *) xmalloc (ngroups * sizeof (gid_t));
int val = getgroups (ngroups, groups);