mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-09-24 16:05:27 +00:00
Dumb mistake on buffer usage
This commit is contained in:
@@ -474,9 +474,9 @@ namespace SharpCompress.Compressors.Deflate
|
||||
header[i++] = 0; // terminate
|
||||
}
|
||||
|
||||
BaseStream._stream.Write(header, 0, header.Length);
|
||||
BaseStream._stream.Write(header, 0, bufferLength);
|
||||
|
||||
return header.Length; // bytes written
|
||||
return bufferLength; // bytes written
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user