aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ls.c b/src/ls.c
index 65692dc1f..27962ad91 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -59,7 +59,7 @@ bool isRemoteUrl(const char *url)
/* suffixes should be ascii only characters */
const char *getSuffix(const char *utf8file)
{
- const char *dot = strrchr(utf8file, '.');
+ const char *dot = strrchr(g_basename(utf8file), '.');
return dot != NULL ? dot + 1 : NULL;
}