[#2212] CID25979:

small refactor, changed strcpy out for snprintf