Fix buffer typos

This fixes a few inconsistencies in the buffer.h file.