summaryrefslogtreecommitdiffstats
path: root/term-utils/wall.c
diff options
context:
space:
mode:
authorKarel Zak2017-06-14 21:45:56 +0200
committerKarel Zak2017-06-14 21:45:56 +0200
commit2a67d912c642765b63cdc41b07515e30e77839ff (patch)
tree3a44d5bc6a8f91e6eeaf782b9e13f672d6e2e17c /term-utils/wall.c
parentlib: remove _RLD_ from forbid environment variable list (diff)
downloadkernel-qcow2-util-linux-2a67d912c642765b63cdc41b07515e30e77839ff.tar.gz
kernel-qcow2-util-linux-2a67d912c642765b63cdc41b07515e30e77839ff.tar.xz
kernel-qcow2-util-linux-2a67d912c642765b63cdc41b07515e30e77839ff.zip
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>
Diffstat (limited to 'term-utils/wall.c')
-rw-r--r--term-utils/wall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/term-utils/wall.c b/term-utils/wall.c
index db85062a7..527e4b6df 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;
}