]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - filematch.c
Made CSQC VM initialization prefer the program downloaded from the server over the...
[xonotic/darkplaces.git] / filematch.c
index 997378757cc6b898ffc8073aa4e41e52918c4feb..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];
@@ -132,7 +132,7 @@ void listdirectory(stringlist_t *list, const char *path)
        // ask for the directory listing handle
        hFile = _findfirst(pattern, &n_file);
        if(hFile == -1)
-               return NULL;
+               return;
        // start a new chain with the the first name
        stringlistappend(list, n_file.name);
        // iterate through the directory