base is given using block size of 2048 (ISO9660), but SCSI uses block size of 512, so base is multiplicated by 4

This commit is contained in:
Laurent Vivier 2006-09-12 00:59:59 +00:00
parent 916b8de203
commit b0838c149a

View File

@ -60,7 +60,7 @@ int main(int argc, char **argv)
} }
if (get_info) { if (get_info) {
printf("%d %d\n", file->base, file->size); printf("%d %d\n", file->base * 4, file->size);
} else { } else {
while((size = iso9660_read(file, buffer, 512)) > 0) while((size = iso9660_read(file, buffer, 512)) > 0)
write(STDOUT_FILENO, buffer, size); write(STDOUT_FILENO, buffer, size);