[#2212] CID26230:

Check length before assigning to fixed size buffer