Chromium Code Reviews| Index: runtime/bin/main.cc |
| diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc |
| index d2bcdba02266c10402d97703a03362785fe4daf4..54f26b2984a2e3403d1c57595073c3cc22daac77 100644 |
| --- a/runtime/bin/main.cc |
| +++ b/runtime/bin/main.cc |
| @@ -262,7 +262,7 @@ static bool ProcessMainOptions(const char* option) { |
| int option_length = strlen(option); |
| while (name != NULL) { |
| int length = strlen(name); |
| - if ((option_length >= length) && (strncmp(option, name, length) == 0)) { |
| + if (option_length == length && strncmp(option, name, length) == 0) { |
|
Ivan Posva
2013/06/11 09:55:49
Please keep the parens.
How will this match "--sn
Anders Johnsen
2013/06/11 10:44:32
Done. I see, updated.
|
| if (!main_options[i].process(option + length)) { |
| Log::PrintErr("Invalid option specification : '%s'\n", option); |
| } |