svn commit: r245050 - head/usr.bin/xargs

Xin LI delphij at FreeBSD.org
Sat Jan 5 00:23:59 UTC 2013


Author: delphij
Date: Sat Jan  5 00:23:58 2013
New Revision: 245050
URL: http://svnweb.freebsd.org/changeset/base/245050

Log:
  Follow calloc convention in other code, this is functionally identical
  to its previous form.

Modified:
  head/usr.bin/xargs/strnsubst.c

Modified: head/usr.bin/xargs/strnsubst.c
==============================================================================
--- head/usr.bin/xargs/strnsubst.c	Sat Jan  5 00:23:26 2013	(r245049)
+++ head/usr.bin/xargs/strnsubst.c	Sat Jan  5 00:23:58 2013	(r245050)
@@ -48,7 +48,7 @@ strnsubst(char **str, const char *match,
 		match = NULL;
 		maxsize = strlen(s1) + 1;
 	}
-	s2 = calloc(maxsize, 1);
+	s2 = calloc(1, maxsize);
 	if (s2 == NULL)
 		err(1, "calloc");
 


More information about the svn-src-all mailing list