Additional buffer check in put
Merge pull request #6 from adamshih/buffer-check

Additional buffer check in put