From owner-svn-src-stable@FreeBSD.ORG Tue Mar 24 01:54:17 2009 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1661106566B; Tue, 24 Mar 2009 01:54:17 +0000 (UTC) (envelope-from obrien@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id BCFA48FC0C; Tue, 24 Mar 2009 01:54:17 +0000 (UTC) (envelope-from obrien@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n2O1sHFj028847; Tue, 24 Mar 2009 01:54:17 GMT (envelope-from obrien@svn.freebsd.org) Received: (from obrien@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n2O1sHqE028846; Tue, 24 Mar 2009 01:54:17 GMT (envelope-from obrien@svn.freebsd.org) Message-Id: <200903240154.n2O1sHqE028846@svn.freebsd.org> From: "David E. O'Brien" Date: Tue, 24 Mar 2009 01:54:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r190358 - stable/7/sbin/mount X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2009 01:54:18 -0000 Author: obrien Date: Tue Mar 24 01:54:17 2009 New Revision: 190358 URL: http://svn.freebsd.org/changeset/base/190358 Log: MFC: 186291: Use strlcpy(). Modified: stable/7/sbin/mount/ (props changed) stable/7/sbin/mount/mount_fs.c (contents, props changed) Modified: stable/7/sbin/mount/mount_fs.c ============================================================================== --- stable/7/sbin/mount/mount_fs.c Tue Mar 24 01:51:42 2009 (r190357) +++ stable/7/sbin/mount/mount_fs.c Tue Mar 24 01:54:17 2009 (r190358) @@ -88,7 +88,7 @@ mount_fs(const char *vfstype, int argc, char *p, *val; int ret; - strncpy(fstype, vfstype, sizeof(fstype)); + strlcpy(fstype, vfstype, sizeof(fstype)); memset(errmsg, 0, sizeof(errmsg)); getmnt_silent = 1;