[#2212] CID26215:

Changed sprintf to the safer snprintf