diff options
author | Karthik Krishnan <karthik.krishnan@kitware.com> | 2006-06-25 19:18:49 (GMT) |
---|---|---|
committer | Karthik Krishnan <karthik.krishnan@kitware.com> | 2006-06-25 19:18:49 (GMT) |
commit | 7890524cd992ba123d7d65b1c156db23b5ff9768 (patch) | |
tree | 8e94cf6453b19bbb5bd9450d044a28a2fba2094f /Source/kwsys | |
parent | 75b974eaf9201a8ad4b1bd03ff41a2cfb27748cf (diff) | |
download | CMake-7890524cd992ba123d7d65b1c156db23b5ff9768.zip CMake-7890524cd992ba123d7d65b1c156db23b5ff9768.tar.gz CMake-7890524cd992ba123d7d65b1c156db23b5ff9768.tar.bz2 |
BUG: The operator precedence is [] followed by *. Calling this method was causing out of array index segfaults bounds
Diffstat (limited to 'Source/kwsys')
-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 b1ee992..cdf254f 100644 --- a/Source/kwsys/CommandLineArguments.cxx +++ b/Source/kwsys/CommandLineArguments.cxx @@ -364,7 +364,7 @@ void CommandLineArguments::DeleteRemainingArguments(int argc, char*** argv) int cc; for ( cc = 0; cc < argc; ++ cc ) { - delete [] *argv[cc]; + delete [] (*argv)[cc]; } delete [] *argv; } |