fixed null termination of buffer
Merge pull request #7 from jonaspfeil/master

fixed null termination of buffer