# HG changeset patch # User Paul Eggert # Date 1070446662 0 # Node ID 459ebb7c12d8af3d6a6a58ab570740a9544544eb # Parent 5ec3ef4c58230dd2bb0f7c5c502f5659f5a3ffe5 * getgroups.c (getgroups): xmalloc takes one argument, not two. diff --git a/lib/ChangeLog b/lib/ChangeLog --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2003-12-03 Paul Eggert + + * getgroups.c (getgroups): xmalloc takes one argument, not two. + Bug reported by Alfred M. Szmidt. + 2003-11-29 Karl Berry * argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc. diff --git a/lib/getgroups.c b/lib/getgroups.c --- a/lib/getgroups.c +++ b/lib/getgroups.c @@ -48,7 +48,7 @@ /* 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;