summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/CommandLineArguments.cxx
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2007-08-03 19:43:31 (GMT)
committerSean McBride <sean@rogue-research.com>2007-08-03 19:43:31 (GMT)
commit11604e72c425a3dba689dc42b0c34fdd2a9c8ff0 (patch)
treecd777b448fe6d4f5a652018362ec4d3a78a4cb3c /Source/kwsys/CommandLineArguments.cxx
parent68674bd0d795b1d560e8b819251480a753ba9882 (diff)
downloadCMake-11604e72c425a3dba689dc42b0c34fdd2a9c8ff0.zip
CMake-11604e72c425a3dba689dc42b0c34fdd2a9c8ff0.tar.gz
CMake-11604e72c425a3dba689dc42b0c34fdd2a9c8ff0.tar.bz2
COMP: fixed compiler warning in sprintf usage
Diffstat (limited to 'Source/kwsys/CommandLineArguments.cxx')
-rw-r--r--Source/kwsys/CommandLineArguments.cxx2
1 files changed, 1 insertions, 1 deletions
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;