Removed errno from buffer.c