Reverse order of arguments in getgroups call (in example) to match prototype.
This commit is contained in:
parent
7974fe2117
commit
85f4084001
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue