diff options
author | phk <phk@FreeBSD.org> | 2002-10-05 18:52:06 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-10-05 18:52:06 +0000 |
commit | 2d5202be2d5815ea1ff17e3ed0d3c91a84e65301 (patch) | |
tree | 98c7aaba16526bf572947552d7ebcc665d5a873d /sys/geom | |
parent | 7b150b70c23f2e2e32cfee0646005b13ef1a75be (diff) | |
download | FreeBSD-src-2d5202be2d5815ea1ff17e3ed0d3c91a84e65301.zip FreeBSD-src-2d5202be2d5815ea1ff17e3ed0d3c91a84e65301.tar.gz |
Fix argument order mistake when decoding disklabels from on-disk format.
Detected by: jhay
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/geom_bsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_bsd.c b/sys/geom/geom_bsd.c index 74898c0..931bc1f 100644 --- a/sys/geom/geom_bsd.c +++ b/sys/geom/geom_bsd.c @@ -103,7 +103,7 @@ g_bsd_ledec_disklabel(u_char *ptr, struct disklabel *d) d->d_type = g_dec_le2(ptr + 4); d->d_subtype = g_dec_le2(ptr + 6); bcopy(ptr + 8, d->d_typename, 16); - bcopy(d->d_packname, ptr + 24, 16); + bcopy(ptr + 24, d->d_packname, 16); d->d_secsize = g_dec_le4(ptr + 40); d->d_nsectors = g_dec_le4(ptr + 44); d->d_ntracks = g_dec_le4(ptr + 48); |