diff options
Diffstat (limited to 'src/pkg/compress/flate/huffman_bit_writer.go')
-rw-r--r-- | src/pkg/compress/flate/huffman_bit_writer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/compress/flate/huffman_bit_writer.go b/src/pkg/compress/flate/huffman_bit_writer.go index 46e353ddc..abff82dd6 100644 --- a/src/pkg/compress/flate/huffman_bit_writer.go +++ b/src/pkg/compress/flate/huffman_bit_writer.go @@ -126,7 +126,7 @@ func (w *huffmanBitWriter) flushBits() { w.bytes[n] = byte(bits) w.bytes[n+1] = byte(bits >> 8) if n += 2; n >= len(w.bytes) { - _, w.err = w.w.Write(&w.bytes) + _, w.err = w.w.Write(w.bytes[0:]) n = 0 } w.nbytes = n |