Fix Coverity warning: Copy into fixed size buffer