Use memcpy instead of strncpy