aboutsummaryrefslogtreecommitdiff
path: root/lib/libutil
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-12-27 20:47:34 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-12-27 20:47:34 +0000
commit50197475794a411c779f4581231649240cdbc244 (patch)
tree659b5ba08203bb6d67780c48a57e49bab88c1379 /lib/libutil
parent7d9001987769591ff5555f9c0cad107b5397ebd4 (diff)
Notes
Diffstat (limited to 'lib/libutil')
-rw-r--r--lib/libutil/gr_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libutil/gr_util.c b/lib/libutil/gr_util.c
index f4a08c4544d5..437fd780b75d 100644
--- a/lib/libutil/gr_util.c
+++ b/lib/libutil/gr_util.c
@@ -452,7 +452,7 @@ gr_dup(const struct group *gr)
return (NULL);
/* point new gr_mem to end of struct + 1 */
if (gr->gr_mem != NULL)
- newgr->gr_mem = (char **)((uintptr_t)newgr + sizeof(struct group));
+ newgr->gr_mem = (char **)(newgr + 1);
else
newgr->gr_mem = NULL;
/* point dst after the end of all the gr_mem pointers in newgr */