Fix Copy into fixed size buffer

That will fix issues like CID 1034500

Coverity: The string operation will write past the end of the fixed-size destination buffer if the source buffer is too large.