Fix Copy into fixed size buffer

Coverity: The string operation will write past the end of the fixed-size destination buffer if the source buffer is too large.