fix the copy filename

space for length plus nul