From 87538f0d5dfb46f213de5dfe7ea9ac07bb4c0c9e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 3 Dec 2003 10:17:42 +0000 Subject: [PATCH] * getgroups.c (getgroups): xmalloc takes one argument, not two. --- lib/ChangeLog | 5 +++++ lib/getgroups.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index a240e70224..2ec3bff3a1 100644 --- 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 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; -- 2.30.2