Fix reading sector tag

This commit is contained in:
Rebecca Wallander
2023-08-04 20:47:15 +02:00
parent 5410ae5e74
commit 9d8adbe7f3

View File

@@ -2009,8 +2009,8 @@ public sealed partial class AaruFormat
}
for(int i = 0; i < length; i++)
Array.Copy(dataSource, (long)(sectorAddress * (sectorOffset + sectorSize + sectorSkip)), buffer,
i * sectorSize, sectorSize);
Array.Copy(dataSource, (long)((sectorAddress * (sectorOffset + sectorSize + sectorSkip)) + sectorOffset),
buffer, i * sectorSize, sectorSize);
return ErrorNumber.NoError;
}