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 /src/id.c | |
| parent | (xgetgroups): Use xnmalloc, rather than xmalloc. (diff) | |
| download | coreutils-1c4154dbb07956bcd71631dd19ffbb72143d9791.tar.gz coreutils-1c4154dbb07956bcd71631dd19ffbb72143d9791.zip | |
(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.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 |
