summaryrefslogtreecommitdiffstats
path: root/Source/cmStringCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-12-29 18:31:04 (GMT)
committerBrad King <brad.king@kitware.com>2003-12-29 18:31:04 (GMT)
commitbc16c68a14eefbf1d78a2f162c424d0fa3e28c28 (patch)
tree0ba8a6977dab8e051de8cec325cea898ef9375d2 /Source/cmStringCommand.cxx
parent242f4f2fc843a8cf0419ff3154a3d1c7cfcdaf27 (diff)
downloadCMake-bc16c68a14eefbf1d78a2f162c424d0fa3e28c28.zip
CMake-bc16c68a14eefbf1d78a2f162c424d0fa3e28c28.tar.gz
CMake-bc16c68a14eefbf1d78a2f162c424d0fa3e28c28.tar.bz2
BUG#452: Fix to argument checking for TOUPPER and TOLOWER subcommands.
Diffstat (limited to 'Source/cmStringCommand.cxx')
-rw-r--r--Source/cmStringCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmStringCommand.cxx b/Source/cmStringCommand.cxx
index 4472a96..6acb72c 100644
--- a/Source/cmStringCommand.cxx
+++ b/Source/cmStringCommand.cxx
@@ -59,7 +59,7 @@ bool cmStringCommand::InitialPass(std::vector<std::string> const& args)
bool cmStringCommand::HandleToUpperLowerCommand(
std::vector<std::string> const& args, bool toUpper)
{
- if ( args.size() <= 1 )
+ if ( args.size() < 3 )
{
this->SetError("no output variable specified");
return false;
@@ -85,7 +85,7 @@ bool cmStringCommand::HandleToUpperLowerCommand(
//----------------------------------------------------------------------------
bool cmStringCommand::HandleAsciiCommand(std::vector<std::string> const& args)
{
- if ( args.size() <= 1 )
+ if ( args.size() < 3 )
{
this->SetError("No output variable specified");
return false;