diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1998-06-06 03:06:55 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1998-06-06 03:06:55 +0000 |
| commit | e3a03f0cfb9cf730de9d5ab08b2182baac4f2f77 (patch) | |
| tree | e3ae376c08eceda26bda7c8e8004ba5f57d43971 /sys/kern/subr_diskslice.c | |
| parent | fbfd95bb1cc024ec26d988f4d7c19314cbd0c85b (diff) | |
Notes
Diffstat (limited to 'sys/kern/subr_diskslice.c')
| -rw-r--r-- | sys/kern/subr_diskslice.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/subr_diskslice.c b/sys/kern/subr_diskslice.c index 76b7d9a1094c..c8bca744b4c7 100644 --- a/sys/kern/subr_diskslice.c +++ b/sys/kern/subr_diskslice.c @@ -46,7 +46,7 @@ * from: wd.c,v 1.55 1994/10/22 01:57:12 phk Exp $ * from: @(#)ufs_disksubr.c 7.16 (Berkeley) 5/4/91 * from: ufs_disksubr.c,v 1.8 1994/06/07 01:21:39 phk Exp $ - * $Id: subr_diskslice.c,v 1.44 1998/04/24 11:49:57 obrien Exp $ + * $Id: subr_diskslice.c,v 1.45 1998/04/24 11:50:30 obrien Exp $ */ #include "opt_devfs.h" @@ -344,7 +344,8 @@ dsioctl(dname, dev, cmd, data, flags, sspp, strat, setgeom) return (0); case DIOCGSLICEINFO: - *(struct diskslices *)data = *ssp; + bcopy(ssp, data, (char *)&ssp->dss_slices[ssp->dss_nslices] - + (char *)ssp); return (0); case DIOCSBAD: |
