Update buffer.c
Merge pull request #6 from jwerle/master

Update buffer.c