Update buffer.cc