diff options
author | Jim Meyering <jim@meyering.net> | 2004-05-06 14:46:00 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-05-06 14:46:00 +0000 |
commit | 1c4154dbb07956bcd71631dd19ffbb72143d9791 (patch) | |
tree | 7c9d1ffb0c9c4eee777b1bacab050f5523c42309 | |
parent | 76ef73f50a23ed943f9372f6dcb194eb9c855fed (diff) | |
download | coreutils-1c4154dbb07956bcd71631dd19ffbb72143d9791.tar.xz |
(xgetgroups): Use variable name, rather than type name in computing buffer
size for xnmalloc.
-rw-r--r-- | src/id.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |