Clean up memcpy and memset uses. The memcpy was doing single-character copies; replaced with an assignment. The memset was clearing to all-0-bits a struct containing pointer fields; fixed to assign to the various fields. (One bzero remains, since one of the fields is an array of a character type.)