`buf` is dead code.