diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2012-12-27 20:47:34 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2012-12-27 20:47:34 +0000 |
commit | aa220b5f62d62ea62dc8ac4e3a26696ee05faba7 (patch) | |
tree | e825a8401e27bdbe10da28ad8c182ed24b0068e0 /libutil | |
parent | 51b9aa2af727f3e728cf8676626c60a2b08747b5 (diff) | |
download | pw-darwin-aa220b5f62d62ea62dc8ac4e3a26696ee05faba7.tar.gz pw-darwin-aa220b5f62d62ea62dc8ac4e3a26696ee05faba7.tar.zst pw-darwin-aa220b5f62d62ea62dc8ac4e3a26696ee05faba7.zip |
avoid arithmetic on uintptr_t
Submitted by: pjd
Reviewed by: jilles
Diffstat (limited to 'libutil')
-rw-r--r-- | libutil/gr_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libutil/gr_util.c b/libutil/gr_util.c index f4a08c4..437fd78 100644 --- a/libutil/gr_util.c +++ b/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 */ |