From 9fcafc555fa042b8b0f4ab262959694655421c16 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sun, 20 Jul 2008 19:19:41 +0200 Subject: [PATCH] Add complete file path to names, not just the file name. --- src/filters.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filters.c b/src/filters.c index de72aef0..4e7e31c8 100644 --- a/src/filters.c +++ b/src/filters.c @@ -120,7 +120,7 @@ loadfilters(void) if (stat(file, &statbuf) != 0) ohshite(_("error stating file '%s'"), file); if (S_ISREG(statbuf.st_mode)) { - names[i++] = m_strdup(dent->d_name); + names[i++] = m_strdup(file); if (i == names_len) { names_len *= 2; names = m_realloc(names, -- 2.39.5