summaryrefslogtreecommitdiff
path: root/src/id.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-05-06 14:46:00 +0000
committerJim Meyering <jim@meyering.net>2004-05-06 14:46:00 +0000
commit1c4154dbb07956bcd71631dd19ffbb72143d9791 (patch)
tree7c9d1ffb0c9c4eee777b1bacab050f5523c42309 /src/id.c
parent76ef73f50a23ed943f9372f6dcb194eb9c855fed (diff)
downloadcoreutils-1c4154dbb07956bcd71631dd19ffbb72143d9791.tar.xz
(xgetgroups): Use variable name, rather than type name in computing buffer
size for xnmalloc.
Diffstat (limited to 'src/id.c')
-rw-r--r--src/id.c2
1 files changed, 1 insertions, 1 deletions
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