Skip to content

Commit

Permalink
Merge pull request #813 from aaru-dps/fakeshemp/aaruf-bugfix
Browse files Browse the repository at this point in the history
Fix reading sector tag
  • Loading branch information
claunia authored Aug 5, 2023
2 parents 5410ae5 + 9d8adbe commit d1d9e08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Aaru.Images/AaruFormat/Read.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2009,8 +2009,8 @@ public ErrorNumber ReadSectorsTag(ulong sectorAddress, uint length, SectorTagTyp
}

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;
}
Expand Down

0 comments on commit d1d9e08

Please sign in to comment.