diff options
Diffstat (limited to 'manual/users.texi')
-rw-r--r-- | manual/users.texi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/manual/users.texi b/manual/users.texi index ec22ce6c1c..72da3fb714 100644 --- a/manual/users.texi +++ b/manual/users.texi @@ -578,7 +578,7 @@ supplementary_groups (char *user) if (getgrouplist (pw->pw_name, pw->pw_gid, groups, &ngroups) < 0) @{ - groups = xrealloc (ngroups * sizeof (gid_t)); + groups = xreallocarray (ngroups, sizeof *groups); getgrouplist (pw->pw_name, pw->pw_gid, groups, &ngroups); @} return groups; |