Fix read()'s return value when length is too small
Merge pull request #1 from crazy2k/patch-1

Fix read()'s return value when length is too small