Use buffers rather than linked lists for input and out buffers.
Stop reading input at a nul byte.

7 files changed