Corrected erroneous sprintf (closes #4207)