Added missing sprintf() in Exception message.