Merge pull request #654 from anqid-g/pr/make-gcc-8-werror-happy

Address truncation warning in gcc 8+