summaryrefslogtreecommitdiffstats
path: root/libutil/gr_util.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2010-03-04 13:35:57 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2010-03-04 13:35:57 +0000
commit142a7605c2947afa39e259b722ca745916009e2c (patch)
tree62d177789207ec0bff9f9032cdb40790aa5effe0 /libutil/gr_util.c
parentc8de657eccd8568b23d55fbdcdc421ea20907580 (diff)
parent7670596c5386db5668e6b3b6c8fbf37e378eae91 (diff)
downloadpw-darwin-142a7605c2947afa39e259b722ca745916009e2c.tar.gz
pw-darwin-142a7605c2947afa39e259b722ca745916009e2c.zip
IFH@204581
Diffstat (limited to 'libutil/gr_util.c')
-rw-r--r--libutil/gr_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libutil/gr_util.c b/libutil/gr_util.c
index 77e0653..633f435 100644
--- a/libutil/gr_util.c
+++ b/libutil/gr_util.c
@@ -117,8 +117,8 @@ gr_make(const struct group *gr)
/* Create the group line and fill it. */
if ((line = malloc(line_size)) == NULL)
return (NULL);
- line_size = snprintf(line, line_size, group_line_format, gr->gr_name,
- gr->gr_passwd, (uintmax_t)gr->gr_gid);
+ snprintf(line, line_size, group_line_format, gr->gr_name, gr->gr_passwd,
+ (uintmax_t)gr->gr_gid);
if (gr->gr_mem != NULL)
for (ndx = 0; gr->gr_mem[ndx] != NULL; ndx++) {
strcat(line, gr->gr_mem[ndx]);