code Mk5

changed line 47 from sprintf to snprintf