Fix compiler issues reported by Xdacted.
don't use memset.
ehhhh
Merge pull request #1 from github/xdacted-fixes

Fix compiler issues reported by Xdacted.