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