[#2212] CID26070:

minor refactor, changed strcpy to snprintf