New code for 5.19:
- Fix a couple of accounting errors in the buffered io code.