Mercurial > hg > octave-lojdl > gnulib-hg
diff lib/getgroups.c @ 4891:459ebb7c12d8
* getgroups.c (getgroups): xmalloc takes one argument, not two.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Wed, 03 Dec 2003 10:17:42 +0000 |
parents | b3e190d8e109 |
children | a48fb0e98c8c |
line wrap: on
line diff
--- 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;