From 08c59cc33e2ab071496d41c250a686de58b552f6 Mon Sep 17 00:00:00 2001 From: Sean Farley Date: Fri, 18 Dec 2009 20:05:10 +0000 Subject: [PATCH] Merge from head to stable/8: r200423: Remove a dead store. --- lib/libutil/gr_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libutil/gr_util.c b/lib/libutil/gr_util.c index 77e06531f70..633f435eea2 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]);