diff options
| author | 2004-03-03 05:41:37 +0000 | |
|---|---|---|
| committer | 2004-03-03 05:41:37 +0000 | |
| commit | 7c7960f8579113f3a9142077d507992883b98116 (patch) | |
| tree | 4f36f82a720616f6dea06b82f25199518417923a /sys/miscfs/procfs/procfs_vfsops.c | |
| parent | cleanups, use err(). from Mathias () enloco.net pr3679 (diff) | |
| download | wireguard-openbsd-7c7960f8579113f3a9142077d507992883b98116.tar.xz wireguard-openbsd-7c7960f8579113f3a9142077d507992883b98116.zip | |
save room for nul, so we can unmount later. pr2327 from peter werner
Diffstat (limited to 'sys/miscfs/procfs/procfs_vfsops.c')
| -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")); |
