[#2212] CID26174:

use snprintf instead of strcpy