PERFORCE change 123222 for review
Brian Chu
chub at FreeBSD.org
Mon Jul 9 18:59:27 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=123222
Change 123222 by chub at chub-msdosfs on 2007/07/09 18:58:58
Fix a pointer bug in geom/label msdosfs
Affected files ...
.. //depot/projects/soc2007/chub-msdosfs2/sys/geom/label/g_label_msdosfs.c#4 edit
Differences ...
==== //depot/projects/soc2007/chub-msdosfs2/sys/geom/label/g_label_msdosfs.c#4 (text+ko) ====
@@ -84,8 +84,8 @@
/* Set the bootsector/boot parameter block to a struct. */
bsp = (union bootsector *)sector0;
- pfat_bpb50 = (struct byte_bpb50 *) bsp->bs50.bsBPB;
- pfat_bpb710 = (struct byte_bpb710 *) bsp->bs710.bsBPB;
+ pfat_bpb50 = (struct byte_bpb50 *) &bsp->bs50.bsBPB;
+ pfat_bpb710 = (struct byte_bpb710 *) &bsp->bs710.bsBPB;
/* Check for the FAT boot sector signature. */
if (bsp->bs50.bsBootSectSig0 != BOOTSIG0 ||
@@ -105,7 +105,7 @@
* and another for FAT32.
*/
- pfat_extboot = (struct extboot *) bsp->bs50.bsExt;
+ pfat_extboot = (struct extboot *) &bsp->bs50.bsExt;
/*
* If the BPB_FATSz16/bpbFATsecs field is not zero and
@@ -141,7 +141,7 @@
* and another for FAT32.
*/
- pfat_extboot = (struct extboot *) bsp->bs710.bsExt;
+ pfat_extboot = (struct extboot *) &bsp->bs710.bsExt;
/*
* If the BPB_FATSz32/bpbBigFATsecs field is not zero
More information about the p4-projects
mailing list