use memcpy instead of strn?cpy