summaryrefslogtreecommitdiff
path: root/lib/getgroups.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2003-12-03 10:17:42 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2003-12-03 10:17:42 +0000
commit87538f0d5dfb46f213de5dfe7ea9ac07bb4c0c9e (patch)
treeccef5a736d6007c87e99a6724ae6c6fe504c3e58 /lib/getgroups.c
parent9e1598c386f6018c2882596b57b96c8df3b6599c (diff)
downloadgnulib-87538f0d5dfb46f213de5dfe7ea9ac07bb4c0c9e.tar.gz
* getgroups.c (getgroups): xmalloc takes one argument, not two.
Diffstat (limited to 'lib/getgroups.c')
-rw-r--r--lib/getgroups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/getgroups.c b/lib/getgroups.c
index 4ffa4e08fc..0f951b73ba 100644
--- a/lib/getgroups.c
+++ b/lib/getgroups.c
@@ -48,7 +48,7 @@ getgroups (int n, GETGROUPS_T *group)
/* No need to worry about address arithmetic overflow here,
since the ancient systems that we're running on have low
limits on the number of secondary groups. */
- gbuf = xmalloc (gbuf, n * sizeof *gbuf);
+ gbuf = xmalloc (n * sizeof *gbuf);
n_groups = getgroups (n, gbuf);
if (n_groups < n)
break;