summaryrefslogtreecommitdiff
path: root/usr/src/stand
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/stand')
-rw-r--r--usr/src/stand/lib/fs/hsfs/hsfsops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/src/stand/lib/fs/hsfs/hsfsops.c b/usr/src/stand/lib/fs/hsfs/hsfsops.c
index 0d908640f3..e6b0c1b6e3 100644
--- a/usr/src/stand/lib/fs/hsfs/hsfsops.c
+++ b/usr/src/stand/lib/fs/hsfs/hsfsops.c
@@ -1026,6 +1026,7 @@ boot_hsfs_getdents(int fd, struct dirent *dep, unsigned size)
* alignment.
*/
n = strlen(hdp->hs_ufs_dir.d_name);
+
n = roundup((sizeof (struct dirent) + ((n > SLOP) ? n : 0)),
sizeof (off_t));