Update buffextras.cpp