convert malloc/memset to calloc and check returns
Merge branch 'master' of https://github.com/leeter/hexchat