fix copy filename

space for length plus nul