[#2212] CID26238:

checked length before copying into fixed-size buffer