summaryrefslogtreecommitdiff
path: root/source/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/gui.c')
-rw-r--r--source/gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gui.c b/source/gui.c
index 886c103..ed30706 100644
--- a/source/gui.c
+++ b/source/gui.c
@@ -109,7 +109,7 @@ static int SortFiles(const void *a, const void *b)
if (f1->is_dir == f2->is_dir)
{
- return strcmp(f1->name, f2->name);
+ return strcasecmp(f1->name, f2->name);
}
else if (f1->is_dir)
{
@@ -142,7 +142,7 @@ static int ValidFilename(const char *name, int is_dir, const char *filter)
if (l > f)
{
- if (strcmp(name+l-f,filter) == 0)
+ if (strcasecmp(name+l-f,filter) == 0)
{
return 1;
}