Changed bcopy() (deprecated) to memcpy()