Restore fix for #51, but in a different form
Restore fix for #51, but in a different form

The check for end > len(dst) was removed to fix #167, but this caused
a new bug, #189. It's restored in a form that avoids both.

Fixes #189, #191.

pierrec/lz4