Use memcpy instead of strcpy