From b3481a9675556926dc41dfd31483894c658b5bec Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Thu, 23 Sep 2004 15:02:22 -0400 Subject: ERR: Fix memory problem --- Source/kwsys/CommandLineArguments.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v0.12