Date: Mon, 9 Jul 2007 18:59:26 GMT From: Brian Chu <chub@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 123222 for review Message-ID: <200707091859.l69IxQTL094330@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=123222 Change 123222 by chub@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707091859.l69IxQTL094330>