Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Erior committed Jun 8, 2024
1 parent 9061e92 commit 5c1149a
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 5c1149a

Please sign in to comment.