Fix buffer not being completely emptied
Fix buffer not being completely emptied

I was very lucky with the first test working...
I tried it on another file and it was hitting the EOF unexpectedly.

This should empty the buffer completely.

lw7360/bish,AOSC-Dev/bish,AICIDNN/bish,lw7360/bish,tdenniston/bish,tdenniston/bish,AICIDNN/bish,AOSC-Dev/bish