diff --git a/sys/vfs/hammer2/hammer2_ioctl.c b/sys/vfs/hammer2/hammer2_ioctl.c --- a/sys/vfs/hammer2/hammer2_ioctl.c +++ b/sys/vfs/hammer2/hammer2_ioctl.c @@ -1436,7 +1436,7 @@ bzero(&entry, sizeof(entry)); /* copy hammer2_volume_t fields */ entry.id = vol->id; - bcopy(vol->dev->path, entry.path, sizeof(entry.path)); + strlcpy(entry.path, vol->dev->path, sizeof(entry.path)); entry.offset = vol->offset; entry.size = vol->size; error = copyout(&entry, &vollist->volumes[cnt], sizeof(entry));