Changed use of deprecated bzero() and bcopy()