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;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to