david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[int13] Use correct size when estimating floppy disk geometry

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2012-09-14 15:04:53 +01:00
parent 117fc61738
commit 8509dbf86a
1 changed files with 1 additions and 1 deletions

View File

@ -627,7 +627,7 @@ static const struct int13_fdd_geometry int13_fdd_geometries[] = {
static int int13_guess_geometry_fdd ( struct int13_drive *int13,
unsigned int *heads,
unsigned int *sectors ) {
unsigned int blocks = int13_blksize ( int13 );
unsigned int blocks = int13_capacity ( int13 );
const struct int13_fdd_geometry *geometry;
unsigned int cylinders;
unsigned int i;