Fix read buffer processing
Merge pull request #4 from DaveRandom/master

I done made a mistake up