[#2212] CID26219:

snprintf instead of strcpy to avoid buffer overflow