]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
use strcasecmp for file name sorting
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 17 Nov 2007 11:42:23 +0000 (11:42 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 17 Nov 2007 11:42:23 +0000 (11:42 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7701 d7cf8633-e32d-0410-b094-e92efae38249

filematch.c

index f75ba870b7fc986cec876acd31abea40b99bc9aa..eeae427d4a595a909889728bf3cdba150dfd23b2 100644 (file)
@@ -108,7 +108,7 @@ void stringlistsort(stringlist_t *list)
        {
                for (j = i + 1;j < list->numstrings;j++)
                {
-                       if (strcmp(list->strings[i], list->strings[j]) > 0)
+                       if (strcasecmp(list->strings[i], list->strings[j]) > 0)
                        {
                                temp = list->strings[i];
                                list->strings[i] = list->strings[j];