diff options
author | Sean Farley <scf@FreeBSD.org> | 2009-12-18 20:08:29 +0000 |
---|---|---|
committer | Sean Farley <scf@FreeBSD.org> | 2009-12-18 20:08:29 +0000 |
commit | d7bd99c6bd66bfc410148885364e15c4656cc514 (patch) | |
tree | 8d15972fc12397d0638eac115b4bbd6f9119d839 | |
parent | 52114fd6bd38c2489717a0a8ca127d1758d551ac (diff) |
Notes
-rw-r--r-- | lib/libutil/gr_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libutil/gr_util.c b/lib/libutil/gr_util.c index 77e06531f705..633f435eea29 100644 --- a/lib/libutil/gr_util.c +++ b/lib/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]); |