Renamed buf_ptr to buf_ptr_t.