diff options
| author | Dina K Nimeh <Dina.Nimeh@Sun.Com> | 2008-11-11 10:46:19 -0800 |
|---|---|---|
| committer | Dina K Nimeh <Dina.Nimeh@Sun.Com> | 2008-11-11 10:46:19 -0800 |
| commit | 6f02aa444eb77edda1b97ff8a1215c417932a62e (patch) | |
| tree | 3a625331d877c330f03deb0730264624e240ded3 /usr/src/uts/common/fs/vfs.c | |
| parent | d759eef091b52e0826684715bc59f323939dcb97 (diff) | |
| download | illumos-joyent-6f02aa444eb77edda1b97ff8a1215c417932a62e.tar.gz | |
6743213 lofi ioctl filename should be MAXPATHLEN
Diffstat (limited to 'usr/src/uts/common/fs/vfs.c')
| -rw-r--r-- | usr/src/uts/common/fs/vfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/fs/vfs.c b/usr/src/uts/common/fs/vfs.c index c104b6fe71..30e9cf7430 100644 --- a/usr/src/uts/common/fs/vfs.c +++ b/usr/src/uts/common/fs/vfs.c @@ -1033,7 +1033,7 @@ lofi_add(const char *fsname, struct vfs *vfsp, ldi_id = ldi_ident_from_anon(); li = kmem_zalloc(sizeof (*li), KM_SLEEP); - (void) strlcpy(li->li_filename, pn.pn_path, MAXPATHLEN + 1); + (void) strlcpy(li->li_filename, pn.pn_path, MAXPATHLEN); /* * The lofi control node is currently exclusive-open. We'd like |
