]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
wall: don't use gid_t when allocate grounps array
authorKarel Zak <kzak@redhat.com>
Wed, 14 Jun 2017 19:45:56 +0000 (21:45 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 14 Jun 2017 19:45:56 +0000 (21:45 +0200)
Reported-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/wall.c

index db85062a762488bf46d71b379cc197abf1358914..527e4b6dfcf52ec36272d5396fd8ea546c142fac 100644 (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;
 }