BUG#452: Fix to argument checking for TOUPPER and TOLOWER subcommands.

This commit is contained in:
Brad King 2003-12-29 13:31:04 -05:00
parent 242f4f2fc8
commit bc16c68a14
1 changed files with 2 additions and 2 deletions

View File

@ -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;