From 1c4154dbb07956bcd71631dd19ffbb72143d9791 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 6 May 2004 14:46:00 +0000 Subject: (xgetgroups): Use variable name, rather than type name in computing buffer size for xnmalloc. --- src/id.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/id.c') diff --git a/src/id.c b/src/id.c index 0fec74fe2..a3682f3a6 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 -- cgit v1.2.3-54-g00ecf