Replaced sprintf with more secure snprintf (rev. 11)

Signed-off-by: nixnodes <code@eth.si>
Latest: 1.4-11

Signed-off-by: nixnodes <code@eth.si>