Skip to content

Commit

Permalink
Merge pull request #849 from Erior/develop
Browse files Browse the repository at this point in the history
Fix for issue #844
  • Loading branch information
adamhathcock authored Jun 18, 2024
2 parents 9061e92 + 5c1149a commit 4e4e89b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/SharpCompress/Common/Rar/RarVolume.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ internal IEnumerable<RarFilePart> GetVolumeFileParts()
var fh = (FileHeader)header;
if (fh.FileName == "CMT")
{
var part = CreateFilePart(lastMarkHeader!, fh);
var buffer = new byte[fh.CompressedSize];
part.GetCompressedStream().Read(buffer, 0, buffer.Length);
fh.PackedStream.Read(buffer, 0, buffer.Length);
Comment = Encoding.UTF8.GetString(buffer, 0, buffer.Length - 1);
}
}
Expand Down

0 comments on commit 4e4e89b

Please sign in to comment.