[#2212] CID25918:

minor refactor, changed a strcpy into an snprintf