This allows searching map names with only part of the string. Thanks
to Tapani Pälli for the idea.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
int match = 0;
if (is_parse_option(opts, PARSE_MAP_NAME)) {
int match = 0;
if (is_parse_option(opts, PARSE_MAP_NAME)) {
- if (!strcmp(opts->name, map->name))
+ if (strstr(map->name, opts->name))
match = 1;
if (is_parse_option(opts, PARSE_NOADD_TREE))
match = 1;
if (is_parse_option(opts, PARSE_NOADD_TREE))