svn commit: r190358 - stable/7/sbin/mount

David E. O'Brien obrien at FreeBSD.org
Mon Mar 23 18:54:18 PDT 2009


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;


More information about the svn-src-all mailing list