(xgetgroups): Use variable name, rather than type name in computing buffer

size for xnmalloc.
This commit is contained in:
Jim Meyering committed 2004-05-06 14:46:00 +00:00
1 parent 76ef73f50a
commit 1c4154dbb0
1 file changed
+1 -1
+1 -1
View File
@@ -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