diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2004-03-03 05:41:38 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2004-03-03 05:41:38 +0000 |
commit | 677b2003dd6c4765b76591fefc686126ab324699 (patch) | |
tree | d489d24f278e193748a8422c8a79f1b32adc9baa /sys | |
parent | 696b81b137eea37df9fa16a4cbfaa2cdfbc937d7 (diff) |
save room for nul, so we can unmount later. pr2327 from peter werner
Diffstat (limited to 'sys')
-rw-r--r-- | sys/miscfs/procfs/procfs_vfsops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/miscfs/procfs/procfs_vfsops.c b/sys/miscfs/procfs/procfs_vfsops.c index 34a262262ae..3b0b8db5262 100644 --- a/sys/miscfs/procfs/procfs_vfsops.c +++ b/sys/miscfs/procfs/procfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: procfs_vfsops.c,v 1.22 2003/08/14 07:46:40 mickey Exp $ */ +/* $OpenBSD: procfs_vfsops.c,v 1.23 2004/03/03 05:41:37 tedu Exp $ */ /* $NetBSD: procfs_vfsops.c,v 1.25 1996/02/09 22:40:53 christos Exp $ */ /* @@ -105,7 +105,7 @@ procfs_mount(mp, path, data, ndp, p) mp->mnt_data = (qaddr_t)pmnt; vfs_getnewfsid(mp); - (void) copyinstr(path, mp->mnt_stat.f_mntonname, MNAMELEN, &size); + (void) copyinstr(path, mp->mnt_stat.f_mntonname, MNAMELEN - 1, &size); bzero(mp->mnt_stat.f_mntonname + size, MNAMELEN - size); bzero(mp->mnt_stat.f_mntfromname, MNAMELEN); bcopy("procfs", mp->mnt_stat.f_mntfromname, sizeof("procfs")); |