svn commit: r200684 - stable/7/lib/libutil

Sean Farley scf at FreeBSD.org
Fri Dec 18 20:08:30 UTC 2009


Author: scf
Date: Fri Dec 18 20:08:29 2009
New Revision: 200684
URL: http://svn.freebsd.org/changeset/base/200684

Log:
  Merge from head to stable/7:
  
  r200423:
  Remove a dead store.

Modified:
  stable/7/lib/libutil/gr_util.c
Directory Properties:
  stable/7/lib/libutil/   (props changed)

Modified: stable/7/lib/libutil/gr_util.c
==============================================================================
--- stable/7/lib/libutil/gr_util.c	Fri Dec 18 20:05:10 2009	(r200683)
+++ stable/7/lib/libutil/gr_util.c	Fri Dec 18 20:08:29 2009	(r200684)
@@ -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]);


More information about the svn-src-stable-7 mailing list