copy: Don't modify fmt_out until success is ensured