From: Karel Zak Date: Wed, 14 Jun 2017 19:45:56 +0000 (+0200) Subject: wall: don't use gid_t when allocate grounps array X-Git-Tag: v2.31-rc1~296 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a67d912c642765b63cdc41b07515e30e77839ff;p=thirdparty%2Futil-linux.git wall: don't use gid_t when allocate grounps array Reported-by: Ruediger Meier Signed-off-by: Karel Zak --- diff --git a/term-utils/wall.c b/term-utils/wall.c index db85062a76..527e4b6dfc 100644 --- a/term-utils/wall.c +++ b/term-utils/wall.c @@ -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; }