wall: don't use gid_t when allocate grounps array

Reported-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2017-06-14 21:45:56 +02:00
parent 143ea06851
commit 2a67d912c6
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ static struct group_workspace *init_group_workspace(const char *optarg)
buf->requested_group = get_group_gid(optarg);
buf->ngroups = sysconf(_SC_NGROUPS_MAX) + 1; /* room for the primary gid */
buf->groups = xcalloc(sizeof(gid_t), buf->ngroups);
buf->groups = xcalloc(sizeof(*buf->groups), buf->ngroups);
return buf;
}