From 4b9386751a0cb897b18b4a26333e278efec928d1 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Thu, 23 Sep 2004 11:53:55 -0400 Subject: [PATCH] STYLE: Only allocate as much space as needed --- 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 9f73dc1a0..744f11509 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