Replaced deprecated bzero with memset