Merge "core/sal: pass commandline parameters by reference"

This commit is contained in:
Horst Schirmeier
2013-04-03 11:39:36 +02:00
committed by Gerrit Code Review
3 changed files with 16 additions and 7 deletions

View File

@ -13,7 +13,8 @@ namespace fail {
if (strncmp(argv[i], "-Wf,", 4) == 0) {
this->argv.push_back(std::string(argv[i] + 4));
for (int x = i + 1; x < argc; ++x) {
// also copy argv[argc], which equals 0
for (int x = i + 1; x <= argc; ++x) {
argv[x - 1] = argv[x];
}
i --;