Fix dangerous Sprintf
Merge pull request #1848 from lavalamp/fix2

Fix dangerous Sprintf