summaryrefslogtreecommitdiffstats
path: root/Source/kwsys
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-09-23 15:53:55 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-09-23 15:53:55 (GMT)
commit4b9386751a0cb897b18b4a26333e278efec928d1 (patch)
treef31df19934448911a7e56bb3fd5dab7356017670 /Source/kwsys
parent4966d102d64409dab7a726feebcb34e136f42892 (diff)
downloadCMake-4b9386751a0cb897b18b4a26333e278efec928d1.zip
CMake-4b9386751a0cb897b18b4a26333e278efec928d1.tar.gz
CMake-4b9386751a0cb897b18b4a26333e278efec928d1.tar.bz2
STYLE: Only allocate as much space as needed
Diffstat (limited to 'Source/kwsys')
-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 9f73dc1..744f115 100644
--- a/Source/kwsys/CommandLineArguments.cxx
+++ b/Source/kwsys/CommandLineArguments.cxx
@@ -322,7 +322,7 @@ int CommandLineArguments::Parse()
void CommandLineArguments::GetRemainingArguments(int* argc, char*** argv)
{
CommandLineArguments::Internal::VectorOfStrings::size_type size
- = this->Internals->Argv.size() - this->Internals->LastArgument + 1;
+ = this->Internals->Argv.size() - this->Internals->LastArgument;
CommandLineArguments::Internal::VectorOfStrings::size_type cc;
// Copy Argv0 as the first argument