Fix Copy into fixed size buffer

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