Something's not right with buffer parameter handling.