mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
revert to strlen in edit_find_filter
This commit is contained in:
parent
bfa9c961ca
commit
f845e4b569
@ -195,9 +195,9 @@ static int edit_find_filter (const char *filename)
|
||||
size_t i, l, e;
|
||||
if (!filename)
|
||||
return -1;
|
||||
l = str_term_width1 (filename);
|
||||
l = strlen (filename);
|
||||
for (i = 0; i < sizeof (all_filters) / sizeof (all_filters[0]); i++) {
|
||||
e = (all_filters[i].extension);
|
||||
e = strlen (all_filters[i].extension);
|
||||
if (l > e)
|
||||
if (!strcmp (all_filters[i].extension, filename + l - e))
|
||||
return i;
|
||||
|
Loading…
Reference in New Issue
Block a user