mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[ZOO] Fix wrong offset set when reading archive comment.
This commit is contained in:
@@ -106,7 +106,7 @@ public sealed partial class Zoo
|
|||||||
if(header.acmt_len > 0)
|
if(header.acmt_len > 0)
|
||||||
{
|
{
|
||||||
byte[] buffer = new byte[header.acmt_len];
|
byte[] buffer = new byte[header.acmt_len];
|
||||||
stream.Position = 0;
|
stream.Position = header.acmt_pos;
|
||||||
encoding ??= Encoding.UTF8;
|
encoding ??= Encoding.UTF8;
|
||||||
stream.ReadExactly(buffer, 0, buffer.Length);
|
stream.ReadExactly(buffer, 0, buffer.Length);
|
||||||
sb.AppendLine("[slateblue1]Archive comment:[/]");
|
sb.AppendLine("[slateblue1]Archive comment:[/]");
|
||||||
|
|||||||
Reference in New Issue
Block a user