Correct sprintf usage in Core