Corrected erroneous sprintf() (refs #3294)