| Index: third_party/crashpad/crashpad/third_party/getopt/getopt.cc
|
| diff --git a/third_party/crashpad/crashpad/third_party/getopt/getopt.cc b/third_party/crashpad/crashpad/third_party/getopt/getopt.cc
|
| index 1f6eaffdb842111d3bc709e476e3421c01322790..137218b999acb858e411a9859f7f3e3f62feb574 100644
|
| --- a/third_party/crashpad/crashpad/third_party/getopt/getopt.cc
|
| +++ b/third_party/crashpad/crashpad/third_party/getopt/getopt.cc
|
| @@ -240,11 +240,11 @@ getopt_internal (int argc, char **argv, char *shortopts,
|
|
|
| /* first, is it a long option? */
|
| if (longopts != NULL
|
| - && (memcmp (argv[optind], "--", 2) == 0
|
| + && (strncmp (argv[optind], "--", 2) == 0
|
| || (only && argv[optind][0] == '+')) && optwhere == 1)
|
| {
|
| /* handle long options */
|
| - if (memcmp (argv[optind], "--", 2) == 0)
|
| + if (strncmp (argv[optind], "--", 2) == 0)
|
| optwhere = 2;
|
| longopt_match = -1;
|
| possible_arg = strchr (argv[optind] + optwhere, '=');
|
| @@ -259,8 +259,8 @@ getopt_internal (int argc, char **argv, char *shortopts,
|
| match_chars = (possible_arg - argv[optind]) - optwhere;
|
| for (optindex = 0; longopts[optindex].name != NULL; optindex++)
|
| {
|
| - if (memcmp (argv[optind] + optwhere,
|
| - longopts[optindex].name, match_chars) == 0)
|
| + if (strncmp (argv[optind] + optwhere,
|
| + longopts[optindex].name, match_chars) == 0)
|
| {
|
| /* do we have an exact match? */
|
| if (match_chars == strlen (longopts[optindex].name))
|
|
|