From f845e4b569219510345f3a2afbe71b5c999b4a24 Mon Sep 17 00:00:00 2001 From: Ilia Maslakov Date: Mon, 6 Apr 2009 12:45:35 +0000 Subject: [PATCH] revert to strlen in edit_find_filter --- edit/edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edit/edit.c b/edit/edit.c index 3b2fe360d..61a3e8a72 100644 --- a/edit/edit.c +++ b/edit/edit.c @@ -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;