summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-09-23 19:02:22 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-09-23 19:02:22 (GMT)
commitb3481a9675556926dc41dfd31483894c658b5bec (patch)
treebd75fe6bb1a25385d6b5cd2357209d7c324db09d
parent4b9386751a0cb897b18b4a26333e278efec928d1 (diff)
downloadCMake-b3481a9675556926dc41dfd31483894c658b5bec.zip
CMake-b3481a9675556926dc41dfd31483894c658b5bec.tar.gz
CMake-b3481a9675556926dc41dfd31483894c658b5bec.tar.bz2
ERR: Fix memory problem
-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 744f115..9f73dc1 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;
+ = this->Internals->Argv.size() - this->Internals->LastArgument + 1;
CommandLineArguments::Internal::VectorOfStrings::size_type cc;
// Copy Argv0 as the first argument