]> git.jsancho.org Git - lugaru.git/blobdiff - Source/MacCompatibility.cpp
Reverting file paths changes; they make the problem a lot worse (segfaults)
[lugaru.git] / Source / MacCompatibility.cpp
index 8a295fddd281bf1dc96e5c6032a864cfeab1b44c..e82b1b758e276f99e4b18e8c2c56da1623ee5292 100644 (file)
@@ -179,7 +179,7 @@ static int locateOneElement(char *buf)
     struct dirent *dent;
     while ((dent = readdir(dirp)) != NULL)
     {
-        if (stricmp(dent->d_name, ptr) == 0)
+        if (strcasecmp(dent->d_name, ptr) == 0)
         {
             strcpy(ptr, dent->d_name); /* found a match. Overwrite with this case. */
             closedir(dirp);