len should be signed
standard memset error

size of pointer instead of object
warning fix
Merge pull request #8 from kassak/upstream_fixes

Upstream fixes