From owner-svn-src-all@FreeBSD.ORG Sat Jan 5 00:23:59 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6D6D8EFE; Sat, 5 Jan 2013 00:23:59 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 5CA8DFC0; Sat, 5 Jan 2013 00:23:59 +0000 (UTC) Received: from svn.freebsd.org (svn.FreeBSD.org [8.8.178.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r050NxRN093288; Sat, 5 Jan 2013 00:23:59 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r050NxQP093287; Sat, 5 Jan 2013 00:23:59 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <201301050023.r050NxQP093287@svn.freebsd.org> From: Xin LI Date: Sat, 5 Jan 2013 00:23:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r245050 - head/usr.bin/xargs X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jan 2013 00:23:59 -0000 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");