coverity: copy into fixed sized buffer