bug with incomplete read() call

See also issue #43 of seqtk
Merge branch 'master' of github.com:attractivechaos/klib