diff --git a/dec_bcj.go b/dec_bcj.go index 4afe9eb..1b7a695 100644 --- a/dec_bcj.go +++ b/dec_bcj.go @@ -88,8 +88,7 @@ func bcjX86Filter(s *xzDecBCJ, buf []byte) int { if len(buf) <= 4 { return 0 } - buf = buf[:len(buf)-4] - for i = 0; i < len(buf); i++ { + for i = 0; i < len(buf)-4; i++ { if buf[i]&0xfe != 0xe8 { continue }