From: Jim Meyering Date: Thu, 6 May 2004 14:46:00 +0000 (+0000) Subject: (xgetgroups): Use variable name, rather than type name in computing buffer X-Git-Tag: v5.3.0~1615 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1c4154dbb07956bcd71631dd19ffbb72143d9791;p=thirdparty%2Fcoreutils.git (xgetgroups): Use variable name, rather than type name in computing buffer size for xnmalloc. --- diff --git a/src/id.c b/src/id.c index 0fec74fe2d..a3682f3a68 100644 --- 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