]> git.ipfire.org Git - thirdparty/shadow.git/commit
src/groupmems.c: Fix number of elements in allocation
authorAlejandro Colomar <alx@kernel.org>
Mon, 13 May 2024 12:46:47 +0000 (14:46 +0200)
committerSerge Hallyn <serge@hallyn.com>
Tue, 2 Jul 2024 02:40:11 +0000 (21:40 -0500)
commit44ba094766e477ae08abd893091abbb58d1bf1e7
treed3685c3db454f2b923a4464b11db35cd8c96158b
parentc2873170759624014a963b988ef3f598999a008b
src/groupmems.c: Fix number of elements in allocation

We are setting `sgrent.sg_adm[1] = NULL;`, so we need 2 elements.

Fixes: 87b56b19fb72 ("* NEWS, src/groupmems.c, man/groupmems.8.xml: Added support for [...]")
Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/groupmems.c