1.1 --- a/src/wd279x.c Sun Dec 05 10:22:23 2010 +0000 1.2 +++ b/src/wd279x.c Sun Dec 05 16:18:50 2010 +0000 1.3 @@ -373,7 +373,7 @@ 1.4 1.5 for (int i=0; i<temp; i++) { 1.6 // Calculate the LBA address of the required sector 1.7 - lba = ((((ctx->track * ctx->geom_heads) + ctx->head) * ctx->geom_spt) + ctx->sector - 1) * ctx->geom_secsz; 1.8 + lba = ((((ctx->track * ctx->geom_heads) + ctx->head) * ctx->geom_spt) + ((ctx->sector + i - 1) % ctx->geom_spt)) * ctx->geom_secsz; 1.9 1.10 // Read the sector from the file 1.11 fseek(ctx->disc_image, lba, SEEK_SET);