Date: Tue, 24 Mar 2009 01:54:17 +0000 (UTC) From: "David E. O'Brien" <obrien@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r190358 - stable/7/sbin/mount Message-ID: <200903240154.n2O1sHqE028846@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903240154.n2O1sHqE028846>