Bumblebee-Project/bumblebeed — comment on commit 8eb2e533ae9c72c4acf6aebbb1e9f7249bbe6c38
File:  line 0
By Lekensteyn:

A possible fix would be setting a null byte at position `r` or `BUFFER_SIZE - 1` if `r` >= `BUFFER_SIZE`