]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(xgetgroups): Use variable name, rather than type name in computing buffer
authorJim Meyering <jim@meyering.net>
Thu, 6 May 2004 14:46:00 +0000 (14:46 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 6 May 2004 14:46:00 +0000 (14:46 +0000)
size for xnmalloc.

src/id.c

index 0fec74fe2d656c081586f38b3b0f37e657991ade..a3682f3a6848962a447c439defac1daaf5b8dbf5 100644 (file)
--- a/src/id.c
+++ b/src/id.c
@@ -261,7 +261,7 @@ xgetgroups (const char *username, gid_t gid, int *n_groups,
   else
     max_n_groups = getugroups (0, NULL, username, gid);
 
-  g = xnmalloc (max_n_groups, sizeof (GETGROUPS_T));
+  g = xnmalloc (max_n_groups, sizeof *g);
   if (username == 0)
     ng = getgroups (max_n_groups, g);
   else