Fixes #4385: Move r31055 to v1.7 branch (replace bzero with memset)

---svn-pre-commit-ignore-below---

r31055 [[BR]]
Per Dave's comment, bzero has portability issues and little advantage over a simple memset. So let's use the safer solution.

cmr=v1.7.5:reviewer=dgoodell:subject=replace bzero with memset