Date: Sat, 5 Jan 2013 00:23:59 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r245050 - head/usr.bin/xargs Message-ID: <201301050023.r050NxQP093287@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301050023.r050NxQP093287>