diff --git a/src/SharpCompress/Polyfills/StreamExtensions.cs b/src/SharpCompress/Polyfills/StreamExtensions.cs index 16299adc..63c84834 100644 --- a/src/SharpCompress/Polyfills/StreamExtensions.cs +++ b/src/SharpCompress/Polyfills/StreamExtensions.cs @@ -12,7 +12,7 @@ namespace System.IO try { - int read = stream.Read(buffer); + int read = stream.Read(temp, 0, buffer.Length); temp.AsSpan(0, read).CopyTo(buffer); diff --git a/src/SharpCompress/SharpCompress.csproj b/src/SharpCompress/SharpCompress.csproj index 7dbd195f..ef9594e5 100644 --- a/src/SharpCompress/SharpCompress.csproj +++ b/src/SharpCompress/SharpCompress.csproj @@ -2,9 +2,9 @@ SharpCompress - Pure C# Decompression/Compression en-US - 0.28.0 - 0.28.0 - 0.28.0 + 0.28.1 + 0.28.1 + 0.28.1 Adam Hathcock netstandard2.0;netstandard2.1;netcoreapp3.1;net5.0 true