[#2212] CID26219:

snprintf instead of strcpy for safety