Skip to content

Commit

Permalink
Don't reduce size of buffer in bcjX86Filter
Browse files Browse the repository at this point in the history
Fixes #3
  • Loading branch information
Michael Cross committed Jul 21, 2015
1 parent 1b4002b commit b8b09ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dec_bcj.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b8b09ce

Please sign in to comment.