From bc16c68a14eefbf1d78a2f162c424d0fa3e28c28 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 29 Dec 2003 13:31:04 -0500 Subject: [PATCH] BUG#452: Fix to argument checking for TOUPPER and TOLOWER subcommands. --- Source/cmStringCommand.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmStringCommand.cxx b/Source/cmStringCommand.cxx index 4472a96c5..6acb72ce4 100644 --- a/Source/cmStringCommand.cxx +++ b/Source/cmStringCommand.cxx @@ -59,7 +59,7 @@ bool cmStringCommand::InitialPass(std::vector const& args) bool cmStringCommand::HandleToUpperLowerCommand( std::vector 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 const& args) { - if ( args.size() <= 1 ) + if ( args.size() < 3 ) { this->SetError("No output variable specified"); return false;