stop using bzero() and check a few return values
Merge pull request #1 from gustavh/master

minor fix