diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-09-23 19:02:22 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-09-23 19:02:22 (GMT) |
commit | b3481a9675556926dc41dfd31483894c658b5bec (patch) | |
tree | bd75fe6bb1a25385d6b5cd2357209d7c324db09d /Source/kwsys/CommandLineArguments.cxx | |
parent | 4b9386751a0cb897b18b4a26333e278efec928d1 (diff) | |
download | CMake-b3481a9675556926dc41dfd31483894c658b5bec.zip CMake-b3481a9675556926dc41dfd31483894c658b5bec.tar.gz CMake-b3481a9675556926dc41dfd31483894c658b5bec.tar.bz2 |
ERR: Fix memory problem
Diffstat (limited to 'Source/kwsys/CommandLineArguments.cxx')
-rw-r--r-- | Source/kwsys/CommandLineArguments.cxx | 2 |
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 |