From 11604e72c425a3dba689dc42b0c34fdd2a9c8ff0 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Fri, 3 Aug 2007 15:43:31 -0400 Subject: COMP: fixed compiler warning in sprintf usage --- Source/kwsys/CommandLineArguments.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/kwsys/CommandLineArguments.cxx b/Source/kwsys/CommandLineArguments.cxx index 5a550b5..bd89104 100644 --- a/Source/kwsys/CommandLineArguments.cxx +++ b/Source/kwsys/CommandLineArguments.cxx @@ -608,7 +608,7 @@ void CommandLineArguments::GenerateHelp() { str << kwsys_ios::endl; char argument[100]; - sprintf(argument, sit->c_str()); + sprintf(argument, "%s", sit->c_str()); switch ( this->Internals->Callbacks[*sit].ArgumentType ) { case CommandLineArguments::NO_ARGUMENT: break; -- cgit v0.12