Bugfix: unsafe snprintf calls (rev. 1)

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