Update libbuffer.c